barrier: Fix memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=698710
This commit is contained in:
Pavel Vasin 2013-04-23 09:49:29 +04:00 committed by Rui Matos
parent 859d231129
commit 51d98be1f2

View File

@ -59,6 +59,8 @@ struct _MetaBarrierPrivate
PointerBarrier xbarrier; PointerBarrier xbarrier;
}; };
static void meta_barrier_event_unref (MetaBarrierEvent *event);
static void static void
meta_barrier_get_property (GObject *object, meta_barrier_get_property (GObject *object,
guint prop_id, guint prop_id,
@ -359,6 +361,8 @@ meta_barrier_fire_event (MetaBarrier *barrier,
default: default:
g_assert_not_reached (); g_assert_not_reached ();
} }
meta_barrier_event_unref (event);
} }
gboolean gboolean