macosx: fixed regressions from merges with the 1.0-bugfix branch
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 26 May 2009 14:15:13 +0000 (16:15 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 26 May 2009 14:15:24 +0000 (16:15 +0200)
extras/package/macosx/vlc.xcodeproj/project.pbxproj
modules/gui/macosx/misc.m
modules/gui/macosx/simple_prefs.m

index 4d54cfa..558c8a8 100644 (file)
                CC4ED9B00ABE07C800CA4CC5 /* repeat_single_embedded_blue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = repeat_single_embedded_blue.png; path = Resources/repeat_single_embedded_blue.png; sourceTree = "<group>"; };
                CC4ED9B10ABE07C800CA4CC5 /* shuffle_embedded_blue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = shuffle_embedded_blue.png; path = Resources/shuffle_embedded_blue.png; sourceTree = "<group>"; };
                CC4ED9B20ABE07C800CA4CC5 /* shuffle_embedded.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = shuffle_embedded.png; path = Resources/shuffle_embedded.png; sourceTree = "<group>"; };
+               CC61608A0FCC2FDF00D71FB1 /* vlm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = vlm.h; path = ../../../modules/gui/macosx/vlm.h; sourceTree = SOURCE_ROOT; };
+               CC61608B0FCC2FDF00D71FB1 /* vlm.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = vlm.m; path = ../../../modules/gui/macosx/vlm.m; sourceTree = SOURCE_ROOT; };
                CC62B8C50FC5787D0077BB8C /* aiff.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = aiff.icns; path = Resources/aiff.icns; sourceTree = "<group>"; };
                CC62B8C60FC5787D0077BB8C /* audio.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = audio.icns; path = Resources/audio.icns; sourceTree = "<group>"; };
                CC62B8C70FC5787D0077BB8C /* flv.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; name = flv.icns; path = Resources/flv.icns; sourceTree = "<group>"; };
                                CCC593790AB4A9FB0004FF52 /* embeddedwindow.m */,
                                2AEF857609A5FEC900130822 /* fspanel.h */,
                                2AEF857709A5FEC900130822 /* fspanel.m */,
+                               CC61608A0FCC2FDF00D71FB1 /* vlm.h */,
+                               CC61608B0FCC2FDF00D71FB1 /* vlm.m */,
                                CC6EDD4F0B9CA2140096068A /* eyetv.h */,
                                CC6EDD500B9CA2140096068A /* eyetv.m */,
                                CCB24D5E0D54BBAE004D780C /* simple_prefs.h */,
                                CCB24D5D0D54BBAE004D780C /* simple_prefs.m */,
-                               CCB60A3F0E6E5DD900407004 /* vlm.h */,
-                               CCB60A3E0E6E5DD900407004 /* vlm.m */,
                                CC62B9080FC5DB9D0077BB8C /* sidebarview.h */,
                                CC62B9090FC5DB9D0077BB8C /* sidebarview.m */,
                                CC62B90A0FC5DB9D0077BB8C /* sidestatusview.h */,
index 4d77a38..18519aa 100644 (file)
@@ -132,6 +132,12 @@ static NSMutableArray *blackoutWindows = NULL;
     blackoutWindows = [[NSMutableArray alloc] initWithCapacity:1];
 }
 
+- (void)dealloc
+{
+    [blackoutWindows release];
+    [super dealloc];
+}
+
 + (NSScreen *)screenWithDisplayID: (CGDirectDisplayID)displayID
 {
     int i;
index 3037924..5ea9c6c 100644 (file)
@@ -661,7 +661,11 @@ static inline void save_string_list( intf_thread_t * p_intf, id object, const ch
     p_item = config_FindConfig( VLC_OBJECT(p_intf), name );
     p_stringobject = (NSString *)[[object selectedItem] representedObject];
     assert([p_stringobject isKindOfClass:[NSString class]]);
-    if( p_stringobject ) config_PutPsz( p_intf, name, [p_stringobject UTF8String] );
+    if( p_stringobject ) 
+    {
+        config_PutPsz( p_intf, name, [p_stringobject UTF8String] );
+        [p_stringobject release];
+    }
 }
 
 static inline void save_module_list( intf_thread_t * p_intf, id object, const char * name )
@@ -694,7 +698,6 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
 {
     char *psz_tmp;
     int i;
-    NSString *p_stringobject;
     
 #define SaveIntList( object, name ) save_int_list( p_intf, object, name )