From 50461ad4c8f78dc7fa5fd048815fc3bff1fe9272 Mon Sep 17 00:00:00 2001 From: Archie Hilton Date: Tue, 14 May 2024 21:15:17 +0100 Subject: [PATCH] Clean up quads after finishing --- src/main.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index f741095..72e15a1 100644 --- a/src/main.cc +++ b/src/main.cc @@ -90,8 +90,6 @@ static GLuint vertex_buf[2]; static GLuint array_buf[2]; static const GLuint vertex_data_position = 0; -static Quad *o1; - static std::vector quads = {}; static std::array verts({ @@ -172,7 +170,10 @@ int main() { glfwPollEvents(); } - delete(o1); + for(auto q: quads) { + delete(q); + } + glfwDestroyWindow(w); glfwTerminate(); exit(EXIT_SUCCESS);