Commit 8b33631d authored by Gleb Pinigin's avatar Gleb Pinigin

ios2-patch: remove observers in dealloc

parent 88fcdd63
From 782eccd0d1ae98cc9455d44b2aeb20c3b99879c4 Mon Sep 17 00:00:00 2001
From: Gleb Pinigin <gpinigin@gmail.com>
Date: Fri, 17 May 2013 23:13:06 +0700
Subject: [PATCH 15/15] Fix potential crash when sending notification to
deallocated object
---
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];
}
--
1.7.12.4 (Apple Git-37)
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