glwindow_cocoa: fix a leak of the GstNSView
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Fri, 8 Jul 2022 18:49:21 +0000 (20:49 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 11 Jul 2022 11:25:54 +0000 (11:25 +0000)
commit94e1ddad431235d4a90e0cc2d7890b19edb3c6ef
treed960e880db1e23c23932319df9daf45265555d1b
parent7db2a3cf11c8d1aa5e3d3e9ef730c6014a5902a1
glwindow_cocoa: fix a leak of the GstNSView

This leak is also causing a leak of the GstGLCAOpenGLLayer
which leaks the GstGLWrappedContext and the GstGLDisplay

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2736>
subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m