macosx: Fix some input_item_t leaks.
[vlc.git] / modules / gui / macosx / playlist.m
index c05933f..09c3c13 100644 (file)
             p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
             playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
         }
+        vlc_gc_decref( p_input );
     }
     [self playlistUpdated];
     vlc_object_release( p_playlist );
             p_item = playlist_ItemGetByInput( p_playlist, p_input, VLC_TRUE );
             playlist_Control( p_playlist, PLAYLIST_SKIP, VLC_TRUE, p_item );
         }
+        vlc_gc_decref( p_input );
     }
     [self playlistUpdated];
     vlc_object_release( p_playlist );