mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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:
parent
07668a515c
commit
814a9de9d8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user