xvimagesink: fix pad memory leak

pad is not being freed when xwindow is not created

https://bugzilla.gnome.org/show_bug.cgi?id=752042
This commit is contained in:
Vineeth TM 2015-07-07 09:31:01 +09:00 committed by Tim-Philipp Müller
parent 9efa9dfcc8
commit cf454ca713

View 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;
}