glcontext/egl: add missing unref

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1328>
This commit is contained in:
Jiri Uncovsky 2021-11-09 12:10:50 +00:00 committed by GStreamer Marge Bot
parent 71dd47516c
commit 9abac91c96

View file

@ -1191,6 +1191,9 @@ gst_gl_context_egl_destroy_context (GstGLContext * context)
g_signal_handler_disconnect (window, egl->window_handle_signal);
egl->window_handle_signal = 0;
}
if (window) {
gst_object_unref (window);
}
gst_gl_context_egl_activate (context, FALSE);