diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 3e6e838bd4..b95be659c4 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -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; } diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 1f8729ee25..c48037ed95 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -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; }