From e74d1ef3ba805d62528ca66aa1574255d91a1773 Mon Sep 17 00:00:00 2001 From: djairoh Date: Sat, 11 Jan 2025 15:46:59 +0100 Subject: [PATCH] . --- src/gui/MainWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index bf27740..ee2ddf7 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -78,13 +78,12 @@ int Window::init_quad(float* data) { void Window::free(float* data) { - // To preserve the proper destruction order we forcefully set the quads to null (calling their destructor in the process) + // To preserve the proper destruction order we forcefully set pointers to null (calling their destructor in the process) // Not strictly necessary, but i saw some weird errors on exit without this so best to keep it in. this->quad = nullptr; this->widget = nullptr; cudaFree(data); - glfwDestroyWindow(window); glfwTerminate(); }