From f95728a037a8839153429601c127707d353038e1 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Fri, 15 Apr 2016 00:55:16 +0200 Subject: [PATCH] revert: fix(systemtrayicon, widget): Added deallocate memory Revert commit cbb7eeca62f9ec8ad2047b41a7cb914b27d6c618 fixes #3144 --- src/widget/systemtrayicon.cpp | 13 ------------- src/widget/widget.cpp | 3 --- 2 files changed, 16 deletions(-) diff --git a/src/widget/systemtrayicon.cpp b/src/widget/systemtrayicon.cpp index 32812fb2d..a7f3ef183 100644 --- a/src/widget/systemtrayicon.cpp +++ b/src/widget/systemtrayicon.cpp @@ -99,19 +99,6 @@ SystemTrayIcon::SystemTrayIcon() SystemTrayIcon::~SystemTrayIcon() { - delete qtIcon; -#ifdef ENABLE_SYSTRAY_UNITY_BACKEND - delete unityIndicator; - delete unityMenu; -#endif -#ifdef ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND - delete statusNotifier; - delete snMenu; -#endif -#ifdef ENABLE_SYSTRAY_GTK_BACKEND - delete gtkIcon; - delete gtkMenu; -#endif qDebug() << "Deleting SystemTrayIcon"; } diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 161830c09..db3562ee7 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -482,10 +482,7 @@ Widget::~Widget() Translator::unregister(this); AutoUpdater::abortUpdates(); if (icon) - { icon->hide(); - delete icon; - } delete profileForm; delete settingsWidget;