summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 13:22:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:20 +0300
commit0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e (patch)
tree97e4370d0681f11b500d7b2a69ca1c36bed79372 /src
parentec339ab81152e5d0bf3c4d19b7f2ed726d55bdc0 (diff)
downloadmv-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.tar.gz
mv-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.tar.bz2
mv-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.tar.xz
mv-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.zip
add missing cleanup code in graphicsvertexes.
Diffstat (limited to 'src')
-rw-r--r--src/graphicsvertexes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp
index 109b4de6a..a8c3cf3e8 100644
--- a/src/graphicsvertexes.cpp
+++ b/src/graphicsvertexes.cpp
@@ -99,9 +99,13 @@ void NormalOpenGLGraphicsVertexes::clear()
{
ptr = 0;
delete []mFloatTexArray;
+ mFloatTexArray = nullptr;
delete []mIntTexArray;
+ mIntTexArray = nullptr;
delete []mIntVertArray;
+ mIntVertArray = nullptr;
delete []mShortVertArray;
+ mShortVertArray = nullptr;
}
}