diff options
author | Adrian Kummerlaender | 2018-06-08 14:15:01 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2018-06-08 14:15:01 +0200 |
commit | 4fec98839385136f768c8ea1ee265fcaa50d8cc9 (patch) | |
tree | 3afe8ce7f899ec2f7e7455a6648f557fdd488963 /src | |
parent | 52a78e8bcb8efe9b825c3d42f16e79af7b8477f4 (diff) | |
download | computicle-4fec98839385136f768c8ea1ee265fcaa50d8cc9.tar computicle-4fec98839385136f768c8ea1ee265fcaa50d8cc9.tar.gz computicle-4fec98839385136f768c8ea1ee265fcaa50d8cc9.tar.bz2 computicle-4fec98839385136f768c8ea1ee265fcaa50d8cc9.tar.lz computicle-4fec98839385136f768c8ea1ee265fcaa50d8cc9.tar.xz computicle-4fec98839385136f768c8ea1ee265fcaa50d8cc9.tar.zst computicle-4fec98839385136f768c8ea1ee265fcaa50d8cc9.zip |
Correctly destory window
Diffstat (limited to 'src')
-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; |