macosx: fixed a few bugs found by clang's code analysis
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 18 Apr 2009 14:35:41 +0000 (16:35 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 18 Apr 2009 14:35:55 +0000 (16:35 +0200)
modules/gui/macosx/controls.m
modules/gui/macosx/intf.m

index 561e09d..084c7f1 100644 (file)
     }
 
     /* Special case for telx menu */
-    if( [[o_mi title] isEqualToString: _NS("Normal Size")] );
+    if( [[o_mi title] isEqualToString: _NS("Normal Size")] )
     {
         NSMenuItem *item = [[o_mi menu] itemWithTitle:_NS("Teletext")];
                bool b_telx = p_input && var_GetInteger( p_input, "teletext-es" ) >= 0;
index 30eb9d5..d411dc0 100644 (file)
@@ -760,7 +760,9 @@ static VLCMain *_o_sharedMainInstance = nil;
     /* remove global observer watching for vout device changes correctly */
     [[NSNotificationCenter defaultCenter] removeObserver: self];
 
+#ifdef UPDATE_CHECK
     [o_update end];
+#endif
 
     /* release some other objects here, because it isn't sure whether dealloc
      * will be called later on */