mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 00:58:12 +00:00
glimagesink: Fix structure memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=758205
This commit is contained in:
parent
a0a8b8873b
commit
15d9267ed5
1 changed files with 3 additions and 1 deletions
|
@ -414,8 +414,10 @@ gst_glimage_sink_navigation_send_event (GstNavigation * navigation, GstStructure
|
||||||
guint width, height;
|
guint width, height;
|
||||||
gdouble x, y;
|
gdouble x, y;
|
||||||
|
|
||||||
if (!sink->context)
|
if (!sink->context) {
|
||||||
|
gst_structure_free (structure);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
window = gst_gl_context_get_window (sink->context);
|
window = gst_gl_context_get_window (sink->context);
|
||||||
g_return_if_fail (GST_IS_GL_WINDOW (window));
|
g_return_if_fail (GST_IS_GL_WINDOW (window));
|
||||||
|
|
Loading…
Reference in a new issue