]> git.sesse.net Git - vlc/commitdiff
macosx: do not use invalid objects for saving settings
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 16 May 2013 19:34:00 +0000 (21:34 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 16 May 2013 20:04:18 +0000 (22:04 +0200)
modules/gui/macosx/MainMenu.m

index 2d1f386e66d515f56f01b583fe59900a5fe6dc57..0724cd1e839faafebfe462e5110f59a454a5e3d3 100644 (file)
@@ -969,7 +969,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
         [[menu itemWithTag:intValue] setState:NSOnState];
         vlc_object_release(p_freetype);
     }
-    config_PutInt(p_freetype, [representedObject UTF8String], intValue);
+    config_PutInt(p_intf, [representedObject UTF8String], intValue);
 }
 
 - (IBAction)switchSubtitleBackgroundOpacity:(id)sender
@@ -982,7 +982,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
         var_SetInteger(p_freetype, "freetype-background-opacity", intValue);
         vlc_object_release(p_freetype);
     }
-    config_PutInt(p_freetype, "freetype-background-opacity", intValue);
+    config_PutInt(p_intf, "freetype-background-opacity", intValue);
 }
 
 - (IBAction)telxTransparent:(id)sender