barriers: Fix leak in meta_barrier_destroy
meta_barrier_destroy is responsible for removing the extra reference added in meta_barrier_constructed. Unfortunately, it fails to do this because of a misplaced early return statement. This commit removes the spurious return. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1449
This commit is contained in:
parent
38a96cc104
commit
97f10a0d21
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ meta_barrier_destroy (MetaBarrier *barrier)
|
||||||
MetaBarrierImpl *impl = barrier->priv->impl;
|
MetaBarrierImpl *impl = barrier->priv->impl;
|
||||||
|
|
||||||
if (impl)
|
if (impl)
|
||||||
return META_BARRIER_IMPL_GET_CLASS (impl)->destroy (impl);
|
META_BARRIER_IMPL_GET_CLASS (impl)->destroy (impl);
|
||||||
|
|
||||||
g_object_unref (barrier);
|
g_object_unref (barrier);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue