mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 02:32:23 +00:00
gl: Fix leak of the whole CGL context
This was leaking the CGL context and several resources allocated in the context, around 70MB for a 1080p clip Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2744>
This commit is contained in:
parent
c9e13f8834
commit
5541717374
1 changed files with 6 additions and 1 deletions
|
@ -352,7 +352,12 @@ gst_gl_context_cocoa_swap_buffers (GstGLContext * context)
|
||||||
static void
|
static void
|
||||||
gst_gl_context_cocoa_destroy_context (GstGLContext *context)
|
gst_gl_context_cocoa_destroy_context (GstGLContext *context)
|
||||||
{
|
{
|
||||||
/* FIXME: Need to release context and other things? */
|
GstGLContextCocoa *context_cocoa = GST_GL_CONTEXT_COCOA (context);
|
||||||
|
|
||||||
|
if (context_cocoa->priv->gl_context != NULL) {
|
||||||
|
CGLDestroyContext(context_cocoa->priv->gl_context);
|
||||||
|
context_cocoa->priv->gl_context = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static guintptr
|
static guintptr
|
||||||
|
|
Loading…
Reference in a new issue