1
0
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:
Michał Janiszewski
2017-07-30 17:33:42 +02:00
parent 427009e9bb
commit eb76b188ae

View File

@@ -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;
}