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