From dcded0e183e3426c8e4dcf6590f8d975b16805f7 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 1 May 2017 16:20:25 +0300 Subject: [PATCH] Handle unloading of canvas textures properly https://forum.zdoom.org/viewtopic.php?t=56207 --- src/textures/canvastexture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/textures/canvastexture.cpp b/src/textures/canvastexture.cpp index eba5d2feac..d2530017bf 100644 --- a/src/textures/canvastexture.cpp +++ b/src/textures/canvastexture.cpp @@ -171,11 +171,13 @@ void FCanvasTexture::Unload () if (Canvas != NULL) { delete Canvas; + Canvas = nullptr; } if (CanvasBgra != NULL) { delete CanvasBgra; + CanvasBgra = nullptr; } FTexture::Unload();