diff options
author | Ray Strode <rstrode@redhat.com> | 2020-09-25 14:04:31 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2020-09-26 22:55:37 -0400 |
commit | 97f10a0d215388c3d2870847b2d38a719bcfe001 (patch) | |
tree | 3bef9c1ae850167dc3942c491f95401c54a93bf3 | |
parent | 38a96cc104abf73f6602e1865f57f3161290e4e9 (diff) | |
download | mutter-97f10a0d215388c3d2870847b2d38a719bcfe001.tar.gz |
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
-rw-r--r-- | src/backends/meta-barrier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/meta-barrier.c b/src/backends/meta-barrier.c index e163338cb..ad6c8d583 100644 --- a/src/backends/meta-barrier.c +++ b/src/backends/meta-barrier.c @@ -294,7 +294,7 @@ meta_barrier_destroy (MetaBarrier *barrier) MetaBarrierImpl *impl = barrier->priv->impl; if (impl) - return META_BARRIER_IMPL_GET_CLASS (impl)->destroy (impl); + META_BARRIER_IMPL_GET_CLASS (impl)->destroy (impl); g_object_unref (barrier); } |