summaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-07-13 12:09:22 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commitb3e6d76a1729ead40eb1fa5af98d8d734dfdd09b (patch)
tree0504158947384de8e8cf751b31f4013cea074806 /src/app.cpp
parentb166f3512f5e426e60a4ff610a9f07239ac18ea1 (diff)
app: reset g_app on ~App()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
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;