mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
Do not leak the PangoContext
We hold a reference on the PangoContext we use for an actor, so we should remove the reference inside the dispose implementation.
This commit is contained in:
parent
a865a5d4ea
commit
61d47ee301
@ -1937,6 +1937,12 @@ clutter_actor_dispose (GObject *object)
|
||||
|
||||
destroy_shader_data (self);
|
||||
|
||||
if (priv->pango_context)
|
||||
{
|
||||
g_object_unref (priv->pango_context);
|
||||
priv->pango_context = NULL;
|
||||
}
|
||||
|
||||
g_signal_emit (self, actor_signals[DESTROY], 0);
|
||||
|
||||
G_OBJECT_CLASS (clutter_actor_parent_class)->dispose (object);
|
||||
|
Loading…
Reference in New Issue
Block a user