glwindow/cocoa: remove our view from the parent when closing
authorMatthew Waters <matthew@centricular.com>
Tue, 15 Nov 2016 11:56:25 +0000 (22:56 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 15 Nov 2016 13:00:17 +0000 (00:00 +1100)
commit23ec5aeb839a039f96e686a9083b793cc635a15c
treec19e6d0f56eee61ae5e2f6ea5146619b557d666f
parent5602cab04d39d1b016e3bef5cbf7963628f36a1a
glwindow/cocoa: remove our view from the parent when closing

Otherwise, when the application reuses the same UIView, we were getting
draw notifications on the previous view/layer's which weren't valid anymore
and were referencing pointers that had been freed.

https://bugzilla.gnome.org/show_bug.cgi?id=753003
gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m