diff --git a/gst/multifile/gstmultifilesink.c b/gst/multifile/gstmultifilesink.c index 5897781779..9280f1f5cd 100644 --- a/gst/multifile/gstmultifilesink.c +++ b/gst/multifile/gstmultifilesink.c @@ -142,10 +142,10 @@ gst_multi_file_sink_dispose (GObject * object) { GstMultiFileSink *sink = GST_MULTI_FILE_SINK (object); - G_OBJECT_CLASS (parent_class)->dispose (object); - g_free (sink->filename); sink->filename = NULL; + + G_OBJECT_CLASS (parent_class)->dispose (object); } static gboolean diff --git a/gst/multifile/gstmultifilesrc.c b/gst/multifile/gstmultifilesrc.c index 43e449d506..57d02c675a 100644 --- a/gst/multifile/gstmultifilesrc.c +++ b/gst/multifile/gstmultifilesrc.c @@ -147,12 +147,12 @@ gst_multi_file_src_dispose (GObject * object) { GstMultiFileSrc *src = GST_MULTI_FILE_SRC (object); - G_OBJECT_CLASS (parent_class)->dispose (object); - g_free (src->filename); src->filename = NULL; if (src->caps) gst_caps_unref (src->caps); + + G_OBJECT_CLASS (parent_class)->dispose (object); } static GstCaps *