Change-Id: I6fda7f02968a354eb47f8111eeaefc0eae5faf1b
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
notification_get_list (NOTIFICATION_TYPE_NOTI, -1, ¬ification_list);
if (notification_list) {
get_list = notification_list_get_head (notification_list);
- if (get_list) {
+ while (get_list) {
noti = notification_list_get_data (get_list);
notification_get_pkgname (noti, &pkgname);
if (pkgname == NULL)
wlmessage_destroy (wlmessage);
# endif
- notification_delete (noti);
+ get_list = notification_list_remove(get_list, noti);
+ notification_delete(noti);
}
}
}