Fixed memory leak in joystick menu

This commit is contained in:
Edward Richardson 2015-09-05 14:12:52 +12:00
parent 02c562518d
commit 8ec4d431cf

View file

@ -345,8 +345,8 @@ void UpdateJoystickMenu(IJoystickConfig *selected)
for(unsigned i=0;i<opt->mItems.Size();i++)
{
delete opt->mItems[i];
opt->mItems.Clear();
}
opt->mItems.Clear();
int i;
int itemnum = -1;