Fixed memory leak in DrawingContext
authorIngo Ruhnke <grumbel@gmail.com>
Tue, 12 Aug 2014 19:55:43 +0000 (21:55 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Tue, 12 Aug 2014 20:42:28 +0000 (22:42 +0200)
commit4bd64f63b15d0f903e8d242ea9322fb02ad9f9df
tree9fcfe694dbe8e58d661eb1c903728d89eede6eae
parente84ab6b0b8b1635c05ce4cb1c7ed0ef64e61df9d
Fixed memory leak in DrawingContext

DrawingContext was using placement-new to create objects, but not
manually calling the destructors on them, thus leaking memory when the
object in question itself allocated memory, i.e. std::strings in
TextRequest.
src/video/drawing_context.cpp
src/video/drawing_context.hpp
src/video/drawing_request.hpp
src/video/gl/gl_renderer.cpp
src/video/sdl/sdl_painter.cpp