mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
main-window-linux: unref tray Indicator and Unity Launcher Entry (#2661)
Signed-off-by: Marco Trevisan <mail@3v1n0.net> (github: 3v1n0)
This commit is contained in:
parent
4518e94c8a
commit
28899a642b
1 changed files with 10 additions and 0 deletions
|
@ -595,6 +595,16 @@ MainWindow::~MainWindow() {
|
||||||
Libs::g_object_unref(_trayMenu);
|
Libs::g_object_unref(_trayMenu);
|
||||||
_trayMenu = nullptr;
|
_trayMenu = nullptr;
|
||||||
}
|
}
|
||||||
|
if (_trayIndicator) {
|
||||||
|
Libs::g_object_unref(_trayIndicator);
|
||||||
|
_trayIndicator = nullptr;
|
||||||
|
}
|
||||||
|
#ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION
|
||||||
|
if (_psUnityLauncherEntry) {
|
||||||
|
Libs::g_object_unref(_psUnityLauncherEntry);
|
||||||
|
_psUnityLauncherEntry = nullptr;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Platform
|
} // namespace Platform
|
||||||
|
|
Loading…
Add table
Reference in a new issue