mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +01:00
Ensure UiContext deletes allocated resources
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <openrct2/localisation/string_ids.h>
|
||||
#include <openrct2/platform/Platform2.h>
|
||||
#include <openrct2/ui/UiContext.h>
|
||||
#include <openrct2/ui/WindowManager.h>
|
||||
#include <openrct2/Version.h>
|
||||
#include "CursorRepository.h"
|
||||
#include "drawing/engines/DrawingEngines.h"
|
||||
@@ -106,6 +107,7 @@ public:
|
||||
~UiContext() override
|
||||
{
|
||||
CloseWindow();
|
||||
delete _windowManager;
|
||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||
delete _platformUiContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user