mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
Fixed memory leak in joystick menu
This commit is contained in:
parent
02c562518d
commit
8ec4d431cf
1 changed files with 1 additions and 1 deletions
|
@ -345,8 +345,8 @@ void UpdateJoystickMenu(IJoystickConfig *selected)
|
||||||
for(unsigned i=0;i<opt->mItems.Size();i++)
|
for(unsigned i=0;i<opt->mItems.Size();i++)
|
||||||
{
|
{
|
||||||
delete opt->mItems[i];
|
delete opt->mItems[i];
|
||||||
opt->mItems.Clear();
|
|
||||||
}
|
}
|
||||||
|
opt->mItems.Clear();
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int itemnum = -1;
|
int itemnum = -1;
|
||||||
|
|
Loading…
Reference in a new issue