diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 10:57:19 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 10:57:19 +0200 |
commit | 687ff4bdbb422bfb6364b25df91203b98481e6fa (patch) | |
tree | 00be82ff25ebebe5f34e28581afaf1a734288612 | |
parent | 6d75374c414e266503a980c664038357cc3ed574 (diff) |
Fix debug menu memory leak
-rw-r--r-- | src/extras/debugmenu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extras/debugmenu.h b/src/extras/debugmenu.h index eb56c8f9..c2198aca 100644 --- a/src/extras/debugmenu.h +++ b/src/extras/debugmenu.h @@ -15,7 +15,7 @@ struct MenuEntry Menu *menu; MenuEntry(const char *name); - virtual ~MenuEntry(void) {} + virtual ~MenuEntry(void) { free((void*)name); } }; typedef MenuEntry DebugMenuEntry; |