mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-13 17:06:29 +00:00
fixed mem elak
This commit is contained in:
parent
e89165747b
commit
2311291414
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user