[mutter/wip/fix-barrier-leak] barriers: Fix leak in meta_barrier_destroy
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/fix-barrier-leak] barriers: Fix leak in meta_barrier_destroy
- Date: Fri, 25 Sep 2020 18:38:12 +0000 (UTC)
commit 70720103dbd9831e25c3a049d9a58cc4f2bca800
Author: Ray Strode <rstrode redhat com>
Date: Fri Sep 25 14:04:31 2020 -0400
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.
src/backends/meta-barrier.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-barrier.c b/src/backends/meta-barrier.c
index e163338cb2..ad6c8d5833 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]