We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6376608 commit 3f618d8Copy full SHA for 3f618d8
1 file changed
src/daemon/TreelandConnector.cpp
@@ -220,10 +220,14 @@ void TreelandConnector::connect(QString socketPath) {
220
221
void TreelandConnector::disconnect() {
222
if (m_display) {
223
- m_notifier->setEnabled(false);
+ if (m_notifier)
224
+ m_notifier->setEnabled(false);
225
wl_display_disconnect(m_display);
226
delete m_notifier;
227
+ m_display = nullptr;
228
}
229
+ if (m_ddm)
230
+ m_ddm = nullptr;
231
232
233
// Request wrapper
0 commit comments