From 5fd7254212d9823210a85da6d22094b028098eb2 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Mon, 14 Jul 2014 10:07:47 +0200 Subject: [PATCH] don't delete a qscoped pointer --- src/core/notification/notification_p.cpp | 4 ---- src/core/snore_p.cpp | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/notification/notification_p.cpp b/src/core/notification/notification_p.cpp index c635302..c1d10c4 100644 --- a/src/core/notification/notification_p.cpp +++ b/src/core/notification/notification_p.cpp @@ -68,10 +68,6 @@ Snore::NotificationData::NotificationData(const Notification &old, const QString NotificationData::~NotificationData() { - if(!m_timeoutTimer.isNull()) - { - m_timeoutTimer->deleteLater(); - } notificationCount--; snoreDebug( SNORE_DEBUG ) << "Deleting Notification: ActiveNotifications" << notificationCount << "id" << m_id << "Close Reason:" << m_closeReason; } diff --git a/src/core/snore_p.cpp b/src/core/snore_p.cpp index 37f44ff..dd10d65 100644 --- a/src/core/snore_p.cpp +++ b/src/core/snore_p.cpp @@ -95,6 +95,7 @@ void SnoreCorePrivate::slotAboutToQuit() { if(p->isLoaded()) { + snoreDebug( SNORE_DEBUG ) << "deinitialize" << p->name(); p->load()->deinitialize(); } }