Fix search crash

This commit is contained in:
Simon Robertshaw 2012-01-21 00:21:51 +00:00
parent 36a952ca4d
commit d364a27ed6

View File

@ -82,8 +82,10 @@ void SearchView::NotifySaveListChanged(SearchModel * sender)
for(i = 0; i < saveButtons.size(); i++)
{
RemoveComponent(saveButtons[i]);
delete saveButtons[i];
}
saveButtons.clear();
for(i = 0; i < saves.size(); i++)
{
if(saveX == savesX)