[vlc-devel] commit: Do not leak ( Rafaël Carré )

git version control git at videolan.org
Wed Apr 16 23:28:20 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Apr 16 23:29:06 2008 +0200| [008b32b15969eaae95d63c5766c802bff1f089da]

Do not leak

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

 .../gui/qt4/components/playlist/playlist_model.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 0ee740b..dbbb2de 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -588,7 +588,7 @@ void PLModel::rebuild( playlist_item_t *p_root )
     }
     if( p_root )
     {
-        //if( rootItem ) delete rootItem;
+        delete rootItem;
         rootItem = new PLItem( p_root, NULL, this );
     }
     assert( rootItem );




More information about the vlc-devel mailing list