fixed mem elak

This commit is contained in:
Patrick von Reth 2011-12-19 17:39:29 +01:00
parent e89165747b
commit 2311291414
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void SnorePlugin::startTimeout(uint id,int timeout){
void SnorePlugin::notificationTimedOut(){
uint id = timeout_order.takeFirst();
timeouts.remove(id);
timeouts.take(id)->deleteLater();
if(activeNotifications.contains(id)){
Notification n = activeNotifications.take(id);
snore()->closeNotification(n,NotificationEnums::CloseReasons::TIMED_OUT);