frei0r: Unref the GstCollectPads instance on finalize
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 14 Jun 2009 17:35:29 +0000 (19:35 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 19 Jun 2009 09:03:15 +0000 (11:03 +0200)
gst/frei0r/gstfrei0rmixer.c

index 5e2f5e3..a0252f7 100644 (file)
@@ -60,6 +60,10 @@ gst_frei0r_mixer_finalize (GObject * object)
         klass->n_properties);
   self->property_cache = NULL;
 
+  if (self->collect)
+    gst_object_unref (self->collect);
+  self->collect = NULL;
+
   G_OBJECT_CLASS (g_type_class_peek_parent (klass))->finalize (object);
 }