Commit f2600dd0 authored by Rémi Duraffort's avatar Rémi Duraffort

macosx gui: fix a playlist object leak and use pl_release.

parent 65797af8
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
p_intf->p_sys->b_playmode_update = true; p_intf->p_sys->b_playmode_update = true;
p_intf->p_sys->b_intf_update = true; p_intf->p_sys->b_intf_update = true;
vlc_object_release( p_playlist ); pl_Release( p_intf );
} }
/* three little ugly helpers */ /* three little ugly helpers */
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
playlist_t *p_playlist = pl_Hold( VLCIntf ); playlist_t *p_playlist = pl_Hold( VLCIntf );
var_Get( p_playlist, "random", &val ); var_Get( p_playlist, "random", &val );
[o_btn_shuffle setState: val.b_bool]; [o_btn_shuffle setState: val.b_bool];
vlc_object_release( p_playlist ); pl_Release( VLCIntf );
} }
- (IBAction)repeatButtonAction:(id)sender - (IBAction)repeatButtonAction:(id)sender
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
p_intf->p_sys->b_playmode_update = true; p_intf->p_sys->b_playmode_update = true;
p_intf->p_sys->b_intf_update = true; p_intf->p_sys->b_intf_update = true;
vlc_object_release( p_playlist ); pl_Release( p_intf );
} }
...@@ -357,7 +357,7 @@ ...@@ -357,7 +357,7 @@
p_intf->p_sys->b_playmode_update = true; p_intf->p_sys->b_playmode_update = true;
p_intf->p_sys->b_intf_update = true; p_intf->p_sys->b_intf_update = true;
vlc_object_release( p_playlist ); pl_Release( p_intf );
} }
- (IBAction)loop:(id)sender - (IBAction)loop:(id)sender
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
p_intf->p_sys->b_playmode_update = true; p_intf->p_sys->b_playmode_update = true;
p_intf->p_sys->b_intf_update = true; p_intf->p_sys->b_intf_update = true;
vlc_object_release( p_playlist ); pl_Release( p_intf );
} }
- (IBAction)forward:(id)sender - (IBAction)forward:(id)sender
...@@ -1107,7 +1107,7 @@ ...@@ -1107,7 +1107,7 @@
} }
if( p_input ) vlc_object_release( p_input ); if( p_input ) vlc_object_release( p_input );
vlc_object_release( p_playlist ); pl_Release( p_intf );
return( bEnabled ); return( bEnabled );
} }
......
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
playlist_t * p_playlist = pl_Hold( VLCIntf ); playlist_t * p_playlist = pl_Hold( VLCIntf );
playlist_Stop( p_playlist ); playlist_Stop( p_playlist );
vlc_object_release( p_playlist ); pl_Release( VLCIntf );
return YES; return YES;
} }
......
...@@ -435,7 +435,7 @@ static VLCExtended *_o_sharedInstance = nil; ...@@ -435,7 +435,7 @@ static VLCExtended *_o_sharedInstance = nil;
/* store to prefs */ /* store to prefs */
config_PutFloat( p_playlist , "macosx-opaqueness" , val.f_float ); config_PutFloat( p_playlist , "macosx-opaqueness" , val.f_float );
vlc_object_release( p_playlist ); pl_Release( VLCIntf );
o_config_changed = YES; o_config_changed = YES;
} }
...@@ -784,7 +784,7 @@ static VLCExtended *_o_sharedInstance = nil; ...@@ -784,7 +784,7 @@ static VLCExtended *_o_sharedInstance = nil;
"extended control attribute '%s' (%i)", "extended control attribute '%s' (%i)",
[[theModules objectAtIndex: x] UTF8String] , returnedValue); [[theModules objectAtIndex: x] UTF8String] , returnedValue);
[theModules release]; [theModules release];
vlc_object_release( p_playlist ); pl_Release( VLCIntf );
return; return;
} }
...@@ -795,6 +795,6 @@ static VLCExtended *_o_sharedInstance = nil; ...@@ -795,6 +795,6 @@ static VLCExtended *_o_sharedInstance = nil;
msg_Dbg( VLCIntf, "VLCExtended: saved certain preferences successfully" ); msg_Dbg( VLCIntf, "VLCExtended: saved certain preferences successfully" );
[theModules release]; [theModules release];
vlc_object_release( p_playlist ); pl_Release( VLCIntf );
} }
@end @end
This diff is collapsed.
...@@ -1322,7 +1322,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1322,7 +1322,7 @@ static VLCWizard *_o_sharedInstance = nil;
x += 1; x += 1;
} }
vlc_object_release( p_playlist ); pl_Release( p_intf );
/* close the window, since we are done */ /* close the window, since we are done */
[o_wizard_window close]; [o_wizard_window close];
......
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