From: Vincent Penquerc'h Date: Fri, 13 Jan 2012 10:32:59 +0000 (+0000) Subject: linsyssdi: fix leaks X-Git-Tag: RELEASE-0.11.1~5^2~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=525a995569f318609f23e36a37115e6be8f848f9;p=platform%2Fupstream%2Fgst-plugins-bad.git linsyssdi: fix leaks --- diff --git a/sys/linsys/gstlinsyssdisink.c b/sys/linsys/gstlinsyssdisink.c index e4260c0..28b64b2 100644 --- a/sys/linsys/gstlinsyssdisink.c +++ b/sys/linsys/gstlinsyssdisink.c @@ -196,9 +196,14 @@ gst_linsys_sdi_sink_get_property (GObject * object, guint property_id, void gst_linsys_sdi_sink_dispose (GObject * object) { + GstLinsysSdiSink *linsyssdisink; + g_return_if_fail (GST_IS_LINSYS_SDI_SINK (object)); + linsyssdisink = GST_LINSYS_SDI_SINK (object); /* clean up as possible. may be called multiple times */ + g_free (linsyssdisink->device); + linsyssdisink->device = NULL; G_OBJECT_CLASS (parent_class)->dispose (object); } diff --git a/sys/linsys/gstlinsyssdisrc.c b/sys/linsys/gstlinsyssdisrc.c index 467c54c..a9732f5 100644 --- a/sys/linsys/gstlinsyssdisrc.c +++ b/sys/linsys/gstlinsyssdisrc.c @@ -212,9 +212,12 @@ gst_linsys_sdi_src_get_property (GObject * object, guint property_id, void gst_linsys_sdi_src_dispose (GObject * object) { - g_return_if_fail (GST_IS_LINSYS_SDI_SRC (object)); + GstLinsysSdiSrc *linsyssdisrc = GST_LINSYS_SDI_SRC (object); + g_return_if_fail (linsyssdisrc != NULL); /* clean up as possible. may be called multiple times */ + g_free (linsyssdisrc->device); + linsyssdisrc->device = NULL; G_OBJECT_CLASS (parent_class)->dispose (object); }