GESTrackTransition: Unref the ControlSource in dispose
authorEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 8 Jun 2010 16:37:01 +0000 (18:37 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 9 Jun 2010 09:28:46 +0000 (11:28 +0200)
ges/ges-track-transition.c

index 5ff68ef51a4defd299b3c197a1ae052e3cc95327..c9038e5f26f46db6cdd1c36624953cb037f4252b 100644 (file)
@@ -158,19 +158,24 @@ ges_track_transition_dispose (GObject * object)
   if (self->vcontroller) {
     g_object_unref (self->vcontroller);
     self->vcontroller = NULL;
-    /* is this referenec owned by someone other than us? */
+    if (self->vcontrol_source)
+      gst_object_unref (self->vcontrol_source);
     self->vcontrol_source = NULL;
   }
 
   if (self->a_acontroller) {
     g_object_unref (self->a_acontroller);
     self->a_acontroller = NULL;
+    if (self->a_acontrol_source)
+      gst_object_unref (self->a_acontrol_source);
     self->a_acontrol_source = NULL;
   }
 
   if (self->a_bcontroller) {
     g_object_unref (self->a_acontroller);
     self->a_bcontroller = NULL;
+    if (self->a_bcontrol_source)
+      gst_object_unref (self->a_bcontrol_source);
     self->a_bcontrol_source = NULL;
   }