wxwidgets: Don't forget to vlc_gc_decref() the input_item_t once we are done (Patch...
authorDominique Leuenberger <dominique@leuenberger.net>
Mon, 7 Apr 2008 20:07:06 +0000 (23:07 +0300)
committerRafaël Carré <funman@videolan.org>
Tue, 8 Apr 2008 14:32:53 +0000 (16:32 +0200)
Signed-off-by: Rafaël Carré <funman@videolan.org>
modules/gui/wxwidgets/dialogs/open.cpp

index e487eec..5959e8e 100644 (file)
@@ -1209,6 +1209,7 @@ void OpenDialog::OnOk( wxCommandEvent& WXUNUSED(event) )
         playlist_AddInput( p_playlist, p_input,
                PLAYLIST_APPEND | ( b_start ? PLAYLIST_GO : PLAYLIST_PREPARSE ),
                PLAYLIST_END, VLC_TRUE, VLC_FALSE );
+       vlc_gc_decref( p_input );
     }
 
     vlc_object_release( p_playlist );