]> git.sesse.net Git - vlc/commitdiff
Fix potential crash when sending notification to deallocated object
authorGleb Pinigin <gpinigin@gmail.com>
Fri, 17 May 2013 16:13:06 +0000 (23:13 +0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 19 May 2013 10:12:38 +0000 (12:12 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/ios2.m

index 0774550b7e5a743d43e9f83d2259dc284ebf0907..9ecc58cba32bbd419458aefa9c25b133e891bdbd 100644 (file)
@@ -398,6 +398,7 @@ static void OpenglESSwap(vlc_gl_t *gl)
 
 - (void)dealloc
 {
+    [[NSNotificationCenter defaultCenter] removeObserver:self];
     [_eaglContext release];
     [super dealloc];
 }