From 81423ba568544e3318d1d2eceba994198af2b198 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Mon, 18 Jun 2012 15:45:31 +0100 Subject: [PATCH] RenderOptions controller should delete its callback --- src/render/RenderController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/RenderController.cpp b/src/render/RenderController.cpp index c77f3818a..25e698f0c 100644 --- a/src/render/RenderController.cpp +++ b/src/render/RenderController.cpp @@ -61,6 +61,8 @@ RenderController::~RenderController() { { ui::Engine::Ref().CloseWindow(); } + if(callback) + delete callback; delete renderModel; }