aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-06-08 14:15:01 +0200
committerAdrian Kummerlaender2018-06-08 14:15:01 +0200
commit4fec98839385136f768c8ea1ee265fcaa50d8cc9 (patch)
tree3afe8ce7f899ec2f7e7455a6648f557fdd488963
parent52a78e8bcb8efe9b825c3d42f16e79af7b8477f4 (diff)
downloadcomputicle-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
-rw-r--r--src/glfw/window.cc4
-rw-r--r--src/glfw/window.h1
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;