From b3e6d76a1729ead40eb1fa5af98d8d734dfdd09b Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Thu, 13 Jul 2017 12:09:22 +0200 Subject: app: reset g_app on ~App() Signed-off-by: Marcus Fritzsch --- src/app.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app.cpp') 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; -- cgit 1.2.3-korg