cogl: Chain up to dispose()

We forgot to chain up to the parent class' `dispose()` vfunc in both
`CoglPangoRenderer` and `CoglFrameBuffer`. Plugs 2 (probably tiny)
memory leaks.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3203>
This commit is contained in:
Niels De Graef 2023-08-22 21:55:17 +02:00
parent 07668a515c
commit 814a9de9d8
2 changed files with 5 additions and 5 deletions

View File

@ -286,11 +286,9 @@ cogl_pango_renderer_dispose (GObject *object)
{
CoglPangoRenderer *priv = COGL_PANGO_RENDERER (object);
if (priv->ctx)
{
cogl_object_unref (priv->ctx);
priv->ctx = NULL;
}
cogl_clear_object (&priv->ctx);
G_OBJECT_CLASS (cogl_pango_renderer_parent_class)->dispose (object);
}
static void

View File

@ -356,6 +356,8 @@ cogl_framebuffer_dispose (GObject *object)
ctx->current_read_buffer = NULL;
g_clear_object (&priv->driver);
G_OBJECT_CLASS (cogl_framebuffer_parent_class)->dispose (object);
}
static void