[vlc-devel] commit: pda: fix object leaks. ( Rémi Duraffort )

git version control git at videolan.org
Fri Mar 20 10:46:21 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Mar 20 09:26:07 2009 +0100| [b3a1444d90f27dcf1526563682aea3cb5133e936] | committer: Rémi Duraffort 

pda: fix object leaks.

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

 modules/gui/pda/pda_callbacks.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/pda/pda_callbacks.c b/modules/gui/pda/pda_callbacks.c
index a0ef658..a5a155a 100644
--- a/modules/gui/pda/pda_callbacks.c
+++ b/modules/gui/pda/pda_callbacks.c
@@ -780,11 +780,13 @@ void onPlaylistRow(GtkTreeView *treeview, GtkTreePath *path,
         if (!p_model)
         {
             msg_Err(p_intf, "PDA: Playlist model contains a NULL pointer" );
+            pl_Release( p_intf );
             return;
         }
         if (!gtk_tree_model_get_iter(p_model, &iter, path))
         {
             msg_Err( p_intf, "PDA: Playlist could not get iter from model" );
+            pl_Release( p_intf );
             return;
         }
 
@@ -1027,6 +1029,7 @@ void onAddTranscodeToPlaylist(GtkButton *button, gpointer user_data)
     /* Update the playlist */
     playlist_t *p_playlist = pl_Hold( p_intf );
     if( p_playlist == NULL ) return;
+    pl_Release( p_intf );
 
     /* Get all the options. */
     i_pos = snprintf( &mrl[0], VLC_MAX_MRL, "sout");




More information about the vlc-devel mailing list