mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
barriers: Free backend implementation at dispose time
When a MetaBarrier is first created it allocates a backend impl object which does the actual heavy lifting. Unfortunately, that backend object is never freed. This commit ensures the implementation gets freed when the barrier object is freed. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1451
This commit is contained in:
parent
97f10a0d21
commit
1e78d90a37
@ -128,6 +128,7 @@ static void
|
|||||||
meta_barrier_dispose (GObject *object)
|
meta_barrier_dispose (GObject *object)
|
||||||
{
|
{
|
||||||
MetaBarrier *barrier = META_BARRIER (object);
|
MetaBarrier *barrier = META_BARRIER (object);
|
||||||
|
MetaBarrierPrivate *priv = barrier->priv;
|
||||||
|
|
||||||
if (meta_barrier_is_active (barrier))
|
if (meta_barrier_is_active (barrier))
|
||||||
{
|
{
|
||||||
@ -135,6 +136,8 @@ meta_barrier_dispose (GObject *object)
|
|||||||
barrier);
|
barrier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_clear_object (&priv->impl);
|
||||||
|
|
||||||
G_OBJECT_CLASS (meta_barrier_parent_class)->dispose (object);
|
G_OBJECT_CLASS (meta_barrier_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user