Destroy _scaledScreenTexture on destroying hardware engine

This commit is contained in:
Philip Goto authored and Michał Janiszewski committed 2017-11-06 23:05:21 +01:00
1 parent 6377ac7bfb
commit 36bece4cf1
1 file changed
+1
@@ -68,6 +68,7 @@ public:
~HardwareDisplayDrawingEngine() override
{
SDL_DestroyTexture(_screenTexture);
SDL_DestroyTexture(_scaledScreenTexture);
SDL_FreeFormat(_screenTextureFormat);
SDL_DestroyRenderer(_sdlRenderer);
}