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