[evolution/gnome-3-6] Bug #693420 - Crash when adding contact list as attendee
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-6] Bug #693420 - Crash when adding contact list as attendee
- Date: Thu, 21 Feb 2013 19:01:43 +0000 (UTC)
commit 4dbbb69322163829de7f2b65c413284568b20edc
Author: Milan Crha <mcrha redhat com>
Date: Thu Feb 21 20:01:06 2013 +0100
Bug #693420 - Crash when adding contact list as attendee
calendar/gui/e-meeting-store.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c
index f7bb717..eefabdc 100644
--- a/calendar/gui/e-meeting-store.c
+++ b/calendar/gui/e-meeting-store.c
@@ -1106,12 +1106,13 @@ e_meeting_store_remove_attendee (EMeetingStore *store,
}
if (row != -1) {
+ g_ptr_array_remove_index (store->priv->attendees, row);
+
path = gtk_tree_path_new ();
gtk_tree_path_append_index (path, row);
gtk_tree_model_row_deleted (GTK_TREE_MODEL (store), path);
gtk_tree_path_free (path);
- g_ptr_array_remove_index (store->priv->attendees, row);
g_object_unref (attendee);
}
}
@@ -1130,13 +1131,13 @@ e_meeting_store_remove_all_attendees (EMeetingStore *store)
GtkTreePath *path;
attendee = g_ptr_array_index (store->priv->attendees, k);
+ g_ptr_array_remove_index (store->priv->attendees, k);
path = gtk_tree_path_new ();
gtk_tree_path_append_index (path, k);
gtk_tree_model_row_deleted (GTK_TREE_MODEL (store), path);
gtk_tree_path_free (path);
- g_ptr_array_remove_index (store->priv->attendees, k);
g_object_unref (attendee);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]