diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index 46ae3041d..e0ed58639 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -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