qt4: Don't forget to vlc_gc_decref() the input_item_t once we are done with it in...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 7 Apr 2008 20:52:42 +0000 (22:52 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 7 Apr 2008 20:52:59 +0000 (22:52 +0200)
modules/gui/qt4/dialogs/open.cpp

index 0e0b5b2..d0ed288 100644 (file)
@@ -314,6 +314,7 @@ void OpenDialog::finish( bool b_enqueue = false )
             playlist_AddInput( THEPL, p_input,
                 PLAYLIST_APPEND | ( b_start ? PLAYLIST_GO : PLAYLIST_PREPARSE ),
                 PLAYLIST_END, VLC_TRUE, VLC_FALSE );
+            vlc_gc_decref( p_input );
         }
     }
     else