diff options
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index 7a3077ce3..90a7bbf38 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -43,6 +43,7 @@ SDLGraphicsVertexes::~SDLGraphicsVertexes() #ifdef USE_OPENGL OpenGLGraphicsVertexes::OpenGLGraphicsVertexes() : + ptr(0), mFloatTexArray(0), mIntTexArray(0), mIntVertArray(0) @@ -82,6 +83,13 @@ void OpenGLGraphicsVertexes::clear() mIntTexPool.clear(); mVp.clear(); + if (ptr) + { + ptr = 0; + delete []mFloatTexArray; + delete []mIntTexArray; + delete []mIntVertArray; + } } void OpenGLGraphicsVertexes::init() |