xvimagesink/ximagesink: Fix structure memory leak
authorVineeth TM <vineeth.tm@samsung.com>
Tue, 17 Nov 2015 00:06:34 +0000 (09:06 +0900)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 17 Nov 2015 03:07:35 +0000 (00:07 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=758204

sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index 3e6e838..b95be65 100644 (file)
@@ -1541,6 +1541,7 @@ gst_x_image_sink_navigation_send_event (GstNavigation * navigation,
 
   if (!ximagesink->xwindow) {
     g_mutex_unlock (&ximagesink->flow_lock);
+    gst_structure_free (structure);
     return;
   }
 
index 1f8729e..c48037e 100644 (file)
@@ -1126,6 +1126,7 @@ gst_xv_image_sink_navigation_send_event (GstNavigation * navigation,
 
   if (!(xwindow = xvimagesink->xwindow)) {
     g_mutex_unlock (&xvimagesink->flow_lock);
+    gst_structure_free (structure);
     return;
   }