mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
xvimagesink/ximagesink: Fix structure memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=758204
This commit is contained in:
parent
09c881ee14
commit
5f79ccb420
2 changed files with 2 additions and 0 deletions
|
@ -1541,6 +1541,7 @@ gst_x_image_sink_navigation_send_event (GstNavigation * navigation,
|
||||||
|
|
||||||
if (!ximagesink->xwindow) {
|
if (!ximagesink->xwindow) {
|
||||||
g_mutex_unlock (&ximagesink->flow_lock);
|
g_mutex_unlock (&ximagesink->flow_lock);
|
||||||
|
gst_structure_free (structure);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1126,6 +1126,7 @@ gst_xv_image_sink_navigation_send_event (GstNavigation * navigation,
|
||||||
|
|
||||||
if (!(xwindow = xvimagesink->xwindow)) {
|
if (!(xwindow = xvimagesink->xwindow)) {
|
||||||
g_mutex_unlock (&xvimagesink->flow_lock);
|
g_mutex_unlock (&xvimagesink->flow_lock);
|
||||||
|
gst_structure_free (structure);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue