diff options
-rw-r--r-- | src/glfw/window.cc | 4 | ||||
-rw-r--r-- | src/glfw/window.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/glfw/window.cc b/src/glfw/window.cc index 6fbbfee..0e57a65 100644 --- a/src/glfw/window.cc +++ b/src/glfw/window.cc @@ -11,6 +11,10 @@ Window::Window(const std::string& title): } } +Window::~Window() { + glfwDestroyWindow(_handle); +} + bool Window::isGood() const { return _good; } diff --git a/src/glfw/window.h b/src/glfw/window.h index 520b5e8..92a1b56 100644 --- a/src/glfw/window.h +++ b/src/glfw/window.h @@ -17,6 +17,7 @@ private: public: Window(const std::string& title); + ~Window(); bool isGood() const; |