diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-18 13:22:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-19 15:12:20 +0300 |
commit | 0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e (patch) | |
tree | 97e4370d0681f11b500d7b2a69ca1c36bed79372 /src/graphicsvertexes.cpp | |
parent | ec339ab81152e5d0bf3c4d19b7f2ed726d55bdc0 (diff) | |
download | manaverse-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.tar.gz manaverse-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.tar.bz2 manaverse-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.tar.xz manaverse-0e6d3cb3cd1fca213ff5a6201b4c3da9b0c3b49e.zip |
add missing cleanup code in graphicsvertexes.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 4 |
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; } } |