Commit 0e8641f3 authored by Rémi Duraffort's avatar Rémi Duraffort

qt4: fix bookmarks memleaks.

parent d2d8a8fa
......@@ -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] );
}
free( pp_bookmarks );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment