Fixed memory leak
This commit is contained in:
1 parent
df96c39409
commit
a88c1227eb
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user