gl: Fix context leaks
authorEdward Hervey <bilboed@bilboed.com>
Tue, 3 Mar 2015 15:55:26 +0000 (16:55 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:56 +0000 (19:31 +0000)
Introduced by a12ca13750a15300ab3c718ebde2984dc3d587b3

gst-libs/gst/gl/gstglwindow.c

index a42e30a..984033a 100644 (file)
@@ -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