mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
Fix debug menu memory leak
This commit is contained in:
parent
6d75374c41
commit
687ff4bdbb
@ -15,7 +15,7 @@ struct MenuEntry
|
|||||||
Menu *menu;
|
Menu *menu;
|
||||||
|
|
||||||
MenuEntry(const char *name);
|
MenuEntry(const char *name);
|
||||||
virtual ~MenuEntry(void) {}
|
virtual ~MenuEntry(void) { free((void*)name); }
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef MenuEntry DebugMenuEntry;
|
typedef MenuEntry DebugMenuEntry;
|
||||||
|
Loading…
Reference in New Issue
Block a user