cogl: Port Context away from CoglObject

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193>
This commit is contained in:
Bilal Elmoussaoui
2023-08-17 12:08:32 +02:00
committed by Marge Bot
parent 0f54700101
commit 1da42dc3c0
9 changed files with 147 additions and 151 deletions

View File

@ -78,7 +78,7 @@ _cogl_pango_pipeline_cache_new (CoglContext *ctx,
{
CoglPangoPipelineCache *cache = g_new (CoglPangoPipelineCache, 1);
cache->ctx = cogl_object_ref (ctx);
cache->ctx = g_object_ref (ctx);
/* The key is the pipeline pointer. A reference is taken when the
pipeline is used as a key so we should unref it again in the
@ -234,7 +234,7 @@ _cogl_pango_pipeline_cache_free (CoglPangoPipelineCache *cache)
g_hash_table_destroy (cache->hash_table);
cogl_object_unref (cache->ctx);
g_object_unref (cache->ctx);
g_free (cache);
}