[evolution] Bug #709162 - Use-after-free on a reminder snooze



commit 3219d7a8e37fadadd823dd7676a40d40283836fd
Author: Milan Crha <mcrha redhat com>
Date:   Mon Feb 17 15:37:21 2014 +0100

    Bug #709162 - Use-after-free on a reminder snooze

 calendar/alarm-notify/alarm-queue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/calendar/alarm-notify/alarm-queue.c b/calendar/alarm-notify/alarm-queue.c
index 5c62a32..bcdaa08 100644
--- a/calendar/alarm-notify/alarm-queue.c
+++ b/calendar/alarm-notify/alarm-queue.c
@@ -1351,7 +1351,6 @@ notify_dialog_cb (AlarmNotifyResult result,
                debug (("Creating a snooze"));
                create_snooze (tray_data->cqa, tray_data->alarm_id, snooze_mins);
                tray_data->snooze_set = TRUE;
-               tray_list_remove_data (tray_data);
                if (alarm_notifications_dialog) {
                        GtkTreeSelection *selection =
                                gtk_tree_view_get_selection (
@@ -1375,6 +1374,7 @@ notify_dialog_cb (AlarmNotifyResult result,
                        }
 
                }
+               tray_list_remove_data (tray_data);
 
                break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]