[vlc-commits] Fix potential crash when sending notification to deallocated object

Gleb Pinigin git at videolan.org
Sun May 19 12:16:39 CEST 2013


vlc | branch: master | Gleb Pinigin <gpinigin at gmail.com> | Fri May 17 23:13:06 2013 +0700| [15efdb9dd3400aa78e93cdd4eac8ffbfd8e06192] | committer: Jean-Baptiste Kempf

Fix potential crash when sending notification to deallocated object

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15efdb9dd3400aa78e93cdd4eac8ffbfd8e06192
---

 modules/video_output/ios2.m |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m
index 0774550..9ecc58c 100644
--- a/modules/video_output/ios2.m
+++ b/modules/video_output/ios2.m
@@ -398,6 +398,7 @@ static void OpenglESSwap(vlc_gl_t *gl)
 
 - (void)dealloc
 {
+    [[NSNotificationCenter defaultCenter] removeObserver:self];
     [_eaglContext release];
     [super dealloc];
 }



More information about the vlc-commits mailing list