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:
Marco Trevisan 2017-01-24 11:45:10 +01:00 committed by John Preston
parent 4518e94c8a
commit 28899a642b

View File

@ -595,6 +595,16 @@ MainWindow::~MainWindow() {
Libs::g_object_unref(_trayMenu);
_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