From: Edward Hervey Date: Tue, 8 Jun 2010 16:37:01 +0000 (+0200) Subject: GESTrackTransition: Unref the ControlSource in dispose X-Git-Tag: 1.19.3~493^2~2969 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e2660b2c26a450fa4c1be4dddcb2438d22368b2;p=platform%2Fupstream%2Fgstreamer.git GESTrackTransition: Unref the ControlSource in dispose --- diff --git a/ges/ges-track-transition.c b/ges/ges-track-transition.c index 5ff68ef51a..c9038e5f26 100644 --- a/ges/ges-track-transition.c +++ b/ges/ges-track-transition.c @@ -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; }