mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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
This commit is contained in:
parent
5602cab04d
commit
23ec5aeb83
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@ gst_gl_window_cocoa_close (GstGLWindow *window)
|
|||
{
|
||||
GstGLWindowCocoa *window_cocoa = GST_GL_WINDOW_COCOA (window);
|
||||
|
||||
[[window_cocoa->priv->internal_win_id contentView] removeFromSuperview];
|
||||
[window_cocoa->priv->internal_win_id release];
|
||||
window_cocoa->priv->internal_win_id = nil;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue