mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
Fix memory leaks
* Fix recursive reference memory leak in UIWidget * Make Event/ScheduledEvent memory-leak safe * Fix exit crashs by freeing graphics resources before destroying GL context * Add many asserts to avoid any leak regression
This commit is contained in:
@@ -28,6 +28,7 @@ int main(int argc, const char* argv[])
|
||||
OTClient app;
|
||||
app.init(args);
|
||||
app.run();
|
||||
app.deinit();
|
||||
app.terminate();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user