aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.cpp')
-rw-r--r--src/app.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.cpp b/src/app.cpp
index b261c53..29b28b5 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -22,6 +22,10 @@ App::App(wl::display *d) : api{this}, display{d}, controller{}, outputs() {
g_app = this;
}
+App::~App() {
+ g_app = nullptr;
+}
+
int App::init() {
if (!this->display->ok()) {
return -1;