From a88c1227eb40a71ba01117c273e4052f58de4434 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Fri, 16 Mar 2012 15:46:15 +0100 Subject: [PATCH] Fixed memory leak --- Vocaluxe/Lib/Draw/CDirect3D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vocaluxe/Lib/Draw/CDirect3D.cs b/Vocaluxe/Lib/Draw/CDirect3D.cs index 49942b2d..bceaf4d1 100644 --- a/Vocaluxe/Lib/Draw/CDirect3D.cs +++ b/Vocaluxe/Lib/Draw/CDirect3D.cs @@ -934,7 +934,7 @@ namespace Vocaluxe.Lib.Draw { for (int i = 0; i < _Textures.Count; i++) { - if (_Textures[i].index == Texture.index && _D3DTextures[i] != null) + if (_Textures[i].index == Texture.index) { _D3DTextures[Texture.index].Dispose(); _D3DTextures[Texture.index] = null;