gl: Fix leak of the whole CGL context
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Fri, 8 Jul 2022 18:38:51 +0000 (20:38 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 11 Jul 2022 11:25:54 +0000 (11:25 +0000)
commit7db2a3cf11c8d1aa5e3d3e9ef730c6014a5902a1
tree67b4cda2a12227dccad570d5b9852b3ce6d659a6
parent8e2bbfed138cbcd69ca3a0246d32bb5bbc3b3a94
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/2736>
subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m