[mutter] barrier: Fix memory leak



commit 5b6621811cdf6a7e11c400b33ab4f5fa9bf1d908
Author: Pavel Vasin <rat4vier gmail com>
Date:   Tue Apr 23 09:49:29 2013 +0400

    barrier: Fix memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698710

 src/core/barrier.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/barrier.c b/src/core/barrier.c
index 80ac3cd..643b26e 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]