Commit ee17d6bb authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Fix some input_item_t leaks.

parent 1a8d3db6
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
playlist_AddInput( p_playlist, p_input, PLAYLIST_INSERT, playlist_AddInput( p_playlist, p_input, PLAYLIST_INSERT,
PLAYLIST_END, VLC_TRUE, VLC_FALSE ); PLAYLIST_END, VLC_TRUE, VLC_FALSE );
vlc_gc_decref( p_input );
o_url = [NSURL fileURLWithPath: o_urlString]; o_url = [NSURL fileURLWithPath: o_urlString];
if( o_url != nil ) if( o_url != nil )
......
...@@ -1020,6 +1020,7 @@ ...@@ -1020,6 +1020,7 @@
p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE ); p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item ); playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
} }
vlc_gc_decref( p_input );
} }
[self playlistUpdated]; [self playlistUpdated];
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
...@@ -1063,6 +1064,7 @@ ...@@ -1063,6 +1064,7 @@
p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE ); p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item ); playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
} }
vlc_gc_decref( p_input );
} }
[self playlistUpdated]; [self playlistUpdated];
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
......
...@@ -1304,6 +1304,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1304,6 +1304,7 @@ static VLCWizard *_o_sharedInstance = nil;
p_item ); p_item );
} }
vlc_gc_decref( p_input );
x += 1; x += 1;
} }
......
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