diff --git a/src/App.cpp b/src/App.cpp index a3e548a0..03dfb761 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -97,7 +97,7 @@ void App::setPixelArt(const bool pixelArt) { void App::registerShaderProgram(ShaderProgram* shaderProgram) { if (!impl) { // unit tests - init({}); + new Finally(init({})); // leak } impl->shaderPrograms.insert(shaderProgram); }