xvimagesink: fix pad memory leak
authorVineeth TM <vineeth.tm@samsung.com>
Tue, 7 Jul 2015 00:31:01 +0000 (09:31 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 7 Jul 2015 08:28:12 +0000 (09:28 +0100)
pad is not being freed when xwindow is not created

https://bugzilla.gnome.org/show_bug.cgi?id=752042

sys/xvimage/xvimagesink.c

index 6c94725..80b452b 100644 (file)
@@ -1128,6 +1128,7 @@ gst_xv_image_sink_navigation_send_event (GstNavigation * navigation,
 
     if (!(xwindow = xvimagesink->xwindow)) {
       g_mutex_unlock (&xvimagesink->flow_lock);
+      gst_object_unref (peer);
       return;
     }