[evolution-ews/evolution-ews-3-12] Bug 740772 - Use-after-free when adding attachments to events



commit 278fe7edfabd8365db479ed4882351caa367836f
Author: Milan Crha <mcrha redhat com>
Date:   Thu Nov 27 12:55:22 2014 +0100

    Bug 740772 - Use-after-free when adding attachments to events

 src/calendar/e-cal-backend-ews.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 4479b82..e2a6c02 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1319,6 +1319,8 @@ ews_create_attachments_cb (GObject *object,
                if (error != NULL)
                        g_clear_error (&error);
 
+               e_cal_backend_ews_async_data_free (create_data);
+
                return;
        }
 
@@ -1364,7 +1366,7 @@ ews_create_attachments_cb (GObject *object,
                modify_data->extra_comp = g_object_ref (create_data->extra_comp);
                modify_data->cal = g_object_ref (create_data->cal);
                modify_data->context = create_data->context;
-               modify_data->item_id = create_data->item_id;
+               modify_data->item_id = g_strdup (create_data->item_id);
 
                convert_data.connection = create_data->cbews->priv->cnc;
                convert_data.user_email = create_data->cbews->priv->user_email;


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