]> git.sesse.net Git - vlc/commitdiff
Do not leak
authorRafaël Carré <funman@videolan.org>
Wed, 16 Apr 2008 21:29:06 +0000 (23:29 +0200)
committerRafaël Carré <funman@videolan.org>
Wed, 16 Apr 2008 21:29:06 +0000 (23:29 +0200)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 0ee740b566ffe695b7d2b05a35e734643b0849d5..dbbb2dec6bec61d58c4cd701f253a7be609c21dc 100644 (file)
@@ -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 );