]> git.sesse.net Git - vlc/commitdiff
qt4: fix bookmarks memleaks.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 3 Apr 2009 09:35:44 +0000 (11:35 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 3 Apr 2009 09:45:10 +0000 (11:45 +0200)
modules/gui/qt4/dialogs/bookmarks.cpp

index d12eb54f406a360d69e67c941a1d9f812e4f597f..9fa7615007094e18de85fcff3ae66a749314025f 100644 (file)
@@ -233,17 +233,12 @@ void BookmarksDialog::edit( QTreeWidgetItem *item, int column )
     }
 
     // Send the modification
-    if( input_Control( p_input, INPUT_CHANGE_BOOKMARK, p_seekpoint, i_edit ) !=
-        VLC_SUCCESS )
-        goto clear;
+    input_Control( p_input, INPUT_CHANGE_BOOKMARK, p_seekpoint, i_edit );
 
-// Clear the bookmark list
 clear:
+    // Clear the bookmark list
     for( int i = 0; i < i_bookmarks; i++)
-    {
-        if( p_seekpoint != pp_bookmarks[i] )
-            vlc_seekpoint_Delete( pp_bookmarks[i] );
-    }
+        vlc_seekpoint_Delete( pp_bookmarks[i] );
     free( pp_bookmarks );
 }