[vlc-devel] commit: qt4: Don't forget to vlc_gc_decref() the input_item_t once we are done with it in OpenDialog::finish(). ( Pierre d'Herbemont )

git version control git at videolan.org
Mon Apr 7 22:52:42 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon Apr  7 22:52:42 2008 +0200| [f809a7d04e7bdbdcedd2b9576410c3282116ed2e]

qt4: Don't forget to vlc_gc_decref() the input_item_t once we are done with it in OpenDialog::finish().

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f809a7d04e7bdbdcedd2b9576410c3282116ed2e
---

 modules/gui/qt4/dialogs/open.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 0e0b5b2..d0ed288 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -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




More information about the vlc-devel mailing list