From 51d98be1f23b8018110b4f3d1ee966c6bf896fad Mon Sep 17 00:00:00 2001 From: Pavel Vasin Date: Tue, 23 Apr 2013 09:49:29 +0400 Subject: [PATCH] barrier: Fix memory leak https://bugzilla.gnome.org/show_bug.cgi?id=698710 --- src/core/barrier.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/barrier.c b/src/core/barrier.c index 80ac3cd9b..643b26ed7 100644 --- a/src/core/barrier.c +++ b/src/core/barrier.c @@ -59,6 +59,8 @@ struct _MetaBarrierPrivate PointerBarrier xbarrier; }; +static void meta_barrier_event_unref (MetaBarrierEvent *event); + static void meta_barrier_get_property (GObject *object, guint prop_id, @@ -359,6 +361,8 @@ meta_barrier_fire_event (MetaBarrier *barrier, default: g_assert_not_reached (); } + + meta_barrier_event_unref (event); } gboolean