From 961e847433d557c47371d63302e9ab8527d54fc4 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 3 Mar 2015 16:55:26 +0100 Subject: [PATCH] gl: Fix context leaks Introduced by a12ca13750a15300ab3c718ebde2984dc3d587b3 --- gst-libs/gst/gl/gstglwindow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c index a42e30a..984033a 100644 --- a/gst-libs/gst/gl/gstglwindow.c +++ b/gst-libs/gst/gl/gstglwindow.c @@ -305,6 +305,8 @@ _set_window_handle_cb (GstSetWindowHandleCb * data) gst_gl_context_activate (context, FALSE); window_class->set_window_handle (data->window, data->handle); gst_gl_context_activate (context, TRUE); + + gst_object_unref (context); } static void -- 2.7.4