diff options
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index 68e60ea1d..d905b8b64 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -165,3 +165,13 @@ std::vector<DoubleRect*> *GraphicsVertexes::getRectsSDL() { return &sdl[mPtr].mList; } + +ImageVertexes::~ImageVertexes() +{ + delete_all(sdl); + sdl.clear(); +#ifdef USE_OPENGL + delete_all(ogl); + ogl.clear(); +#endif +} |