don't delete a qscoped pointer

This commit is contained in:
Patrick von Reth 2014-07-14 10:07:47 +02:00
parent b0a4297f01
commit 5fd7254212
2 changed files with 1 additions and 4 deletions

View File

@ -68,10 +68,6 @@ Snore::NotificationData::NotificationData(const Notification &old, const QString
NotificationData::~NotificationData() NotificationData::~NotificationData()
{ {
if(!m_timeoutTimer.isNull())
{
m_timeoutTimer->deleteLater();
}
notificationCount--; notificationCount--;
snoreDebug( SNORE_DEBUG ) << "Deleting Notification: ActiveNotifications" << notificationCount << "id" << m_id << "Close Reason:" << m_closeReason; snoreDebug( SNORE_DEBUG ) << "Deleting Notification: ActiveNotifications" << notificationCount << "id" << m_id << "Close Reason:" << m_closeReason;
} }

View File

@ -95,6 +95,7 @@ void SnoreCorePrivate::slotAboutToQuit()
{ {
if(p->isLoaded()) if(p->isLoaded())
{ {
snoreDebug( SNORE_DEBUG ) << "deinitialize" << p->name();
p->load()->deinitialize(); p->load()->deinitialize();
} }
} }