[vlc-devel] commit: bookmarks: fix memleaks ( Rémi Duraffort )

git version control git at videolan.org
Tue Oct 28 22:43:11 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Oct 28 22:41:43 2008 +0100| [b8ad17d647f349aeee1f0f7e5d6dc3b322b6fac9] | committer: Rémi Duraffort 

bookmarks: fix memleaks

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

 modules/gui/qt4/dialogs/bookmarks.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs/bookmarks.cpp b/modules/gui/qt4/dialogs/bookmarks.cpp
index 097150e..b64b53c 100644
--- a/modules/gui/qt4/dialogs/bookmarks.cpp
+++ b/modules/gui/qt4/dialogs/bookmarks.cpp
@@ -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()




More information about the vlc-devel mailing list