From 9f357248e54ed21c4b19ae528f8f6cc5d60e1f45 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 18 Oct 2019 19:11:18 +0200 Subject: [PATCH] - fixed crash on shutdown. --- source/common/textures/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/textures/texture.cpp b/source/common/textures/texture.cpp index f968d6f2c..87505140f 100644 --- a/source/common/textures/texture.cpp +++ b/source/common/textures/texture.cpp @@ -435,7 +435,7 @@ void FTexture::DeleteHardwareTextures() decltype(HardwareTextures)::Pair *pair; while (it.NextPair(pair)) { - delete pair; + delete pair->Value; } HardwareTextures.Clear(); }