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; }