[Menus]: Remove calls to free menus (#642)

It may cause a crash and does not even take a dent in the massive memory leak.
This commit is contained in:
Edo 2022-12-14 22:10:48 +01:00 committed by GitHub
parent 346506a863
commit 34b92abd97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -631,8 +631,6 @@ namespace Components
} }
} }
} }
FreeMenu(oldMenu);
} }
} }
@ -767,8 +765,6 @@ namespace Components
// Clear last menu // Clear last menu
dc->Menus[--dc->menuCount] = nullptr; dc->Menus[--dc->menuCount] = nullptr;
} }
FreeMenu(menu);
} }
void Menus::Add(const std::string& menu) void Menus::Add(const std::string& menu)