xvimagesink/ximagesink: Fix structure memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=758204
This commit is contained in:
Vineeth TM 2015-11-17 09:06:34 +09:00 committed by Thiago Santos
parent 09c881ee14
commit 5f79ccb420
2 changed files with 2 additions and 0 deletions

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

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