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();