xvimagesink/ximagesink: Fix structure memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=758204
This commit is contained in:
parent
09c881ee14
commit
5f79ccb420
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user