[vlc-devel] commit: wxwidgets: Don't forget to vlc_gc_decref() the input_item_t once we are done (Patch inspired from Qt interface) ( Dominique Leuenberger )

git version control git at videolan.org
Tue Apr 8 16:32:17 CEST 2008


vlc | branch: master | Dominique Leuenberger <dominique at leuenberger.net> | Mon Apr  7 23:07:06 2008 +0300| [63d258d395773ab130a02e62b686c68960049c5d]

wxwidgets: Don't forget to vlc_gc_decref() the input_item_t once we are done (Patch inspired from Qt interface)

Signed-off-by: Rafaël Carré <funman at videolan.org>

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

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

diff --git a/modules/gui/wxwidgets/dialogs/open.cpp b/modules/gui/wxwidgets/dialogs/open.cpp
index e487eec..5959e8e 100644
--- a/modules/gui/wxwidgets/dialogs/open.cpp
+++ b/modules/gui/wxwidgets/dialogs/open.cpp
@@ -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 );




More information about the vlc-devel mailing list