From 83bbac2cd1717517a1daf572fba591d4dbdfb2d7 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 13 Mar 2024 13:42:00 +0100 Subject: [PATCH] proper cleanup procedure for main --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 129a51d..fc5acc3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -208,10 +208,17 @@ int main(int argc, char** argv) { #endif } + // TODO: use scope for the unique ptrs + + screen.reset(); + ImGui_ImplSDLRenderer3_Shutdown(); ImGui_ImplSDL3_Shutdown(); ImGui::DestroyContext(); + renderer.reset(); + window.reset(); + SDL_Quit(); return 0;