Commit 15efdb9d authored by Gleb Pinigin's avatar Gleb Pinigin Committed by Jean-Baptiste Kempf

Fix potential crash when sending notification to deallocated object

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 412c7a95
...@@ -398,6 +398,7 @@ static void OpenglESSwap(vlc_gl_t *gl) ...@@ -398,6 +398,7 @@ static void OpenglESSwap(vlc_gl_t *gl)
- (void)dealloc - (void)dealloc
{ {
[[NSNotificationCenter defaultCenter] removeObserver:self];
[_eaglContext release]; [_eaglContext release];
[super dealloc]; [super dealloc];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment