]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugins-bad0-10.git/commitdiff
kmssink: fix leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 17 Oct 2012 16:06:33 +0000 (17:06 +0100)
committerNikhil Devshatwar <a0132237@ti.com>
Wed, 15 May 2013 13:18:32 +0000 (18:48 +0530)
sys/kms/gstkmssink.c

index 85b83b5d0676b3ea82bcc98a769767dd603e6223..45453f0d7dcdb3b740d79d35532bcdba662ee03a 100644 (file)
@@ -379,12 +379,12 @@ gst_kms_sink_set_property (GObject * object, guint prop_id,
 
       if (!g_value_transform (value, tmp)) {
         GST_WARNING_OBJECT (sink, "Could not transform string to aspect ratio");
-        g_free (tmp);
       } else {
         sink->par_n = gst_value_get_fraction_numerator (tmp);
         sink->par_d = gst_value_get_fraction_denominator (tmp);
         GST_DEBUG_OBJECT (sink, "set PAR to %d/%d", sink->par_n, sink->par_d);
       }
+      g_free (tmp);
     }
       break;
     default: