bookmarks: fix memleaks
authorRémi Duraffort <ivoire@videolan.org>
Tue, 28 Oct 2008 21:41:43 +0000 (22:41 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 28 Oct 2008 21:42:38 +0000 (22:42 +0100)
modules/gui/qt4/dialogs/bookmarks.cpp

index 097150e..b64b53c 100644 (file)
@@ -130,8 +130,9 @@ void BookmarksDialog::update()
         item->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEditable |
                         Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
         bookmarksList->insertTopLevelItem( i, item );
+        vlc_seekpoint_Delete( pp_bookmarks[i] );
     }
-
+    free( pp_bookmarks );
 }
 
 void BookmarksDialog::add()