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