Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
app: reset g_app on ~App()
[staging/windowmanager.git]
/
src
/
app.cpp
diff --git
a/src/app.cpp
b/src/app.cpp
index
b261c53
..
29b28b5
100644
(file)
--- 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;