vlc | branch: master | David Fuhrmann <[email protected]> | Sun Aug  2 
12:12:44 2015 +0200| [a493185e16a210741a1d9f16910e626a5bff7e3d] | committer: 
David Fuhrmann

macosx: Fix crash in eyetv controller, reformat

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

 modules/gui/macosx/eyetv.m |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/modules/gui/macosx/eyetv.m b/modules/gui/macosx/eyetv.m
index 1b7f463..4455335 100644
--- a/modules/gui/macosx/eyetv.m
+++ b/modules/gui/macosx/eyetv.m
@@ -34,16 +34,20 @@
 {
     self = [super init];
     if (self) {
-        [[NSDistributedNotificationCenter defaultCenter]
-         addObserver:self
-         selector:@selector(globalNotificationReceived:)
-         name:NULL
-         object:@"VLCEyeTVSupport"
-         
suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
+        [[NSDistributedNotificationCenter defaultCenter] addObserver:self
+                                                            
selector:@selector(globalNotificationReceived:)
+                                                                name:NULL
+                                                              
object:@"VLCEyeTVSupport"
+                                                  
suspensionBehavior:NSNotificationSuspensionBehaviorDeliverImmediately];
     }
     return self;
 }
 
+- (void)dealloc
+{
+    [[NSDistributedNotificationCenter defaultCenter] removeObserver:self];
+}
+
 - (void)globalNotificationReceived: (NSNotification *)theNotification
 {
     /* update our info on the used device */

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to