From 5f79ccb420d6b270d108892f1c7e3dedbd64b57a Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Tue, 17 Nov 2015 09:06:34 +0900 Subject: xvimagesink/ximagesink: Fix structure memory leak https://bugzilla.gnome.org/show_bug.cgi?id=758204 --- sys/ximage/ximagesink.c | 1 + sys/xvimage/xvimagesink.c | 1 + 2 files changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 3e6e838bd..b95be659c 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 1f8729ee2..c48037ed9 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; } -- cgit v1.2.3