diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-08-05 16:03:55 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-08-05 16:03:55 +0800 |
commit | 77d90143e4a6540ab3e3c7306962dc03b678fdc7 (patch) | |
tree | 6e7ba79e2e6d22ed57737ad4e0d837cc3dbdf55b /calendar/gui | |
parent | 8155bb609b124a40e5090bb66e0e178c6294fb76 (diff) | |
download | gsoc2013-evolution-77d90143e4a6540ab3e3c7306962dc03b678fdc7.tar.gz gsoc2013-evolution-77d90143e4a6540ab3e3c7306962dc03b678fdc7.tar.zst gsoc2013-evolution-77d90143e4a6540ab3e3c7306962dc03b678fdc7.zip |
Fixes #311686, #312460
svn path=/trunk/; revision=30000
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-meeting-list-view.c | 6 | ||||
-rw-r--r-- | calendar/gui/itip-utils.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c index c4a6531c7d..101b6281a8 100644 --- a/calendar/gui/e-meeting-list-view.c +++ b/calendar/gui/e-meeting-list-view.c @@ -443,7 +443,7 @@ row_activated_cb (GtkTreeSelection *selection, EMeetingListView *view) EMeetingAttendeeEditLevel el; gint edit_level; GtkTreeModel *model; - GtkTreePath *path; + GtkTreePath *path = NULL; priv = view->priv; @@ -451,6 +451,10 @@ row_activated_cb (GtkTreeSelection *selection, EMeetingListView *view) if (gtk_tree_selection_get_selected (selection, &model, &iter)) { path = gtk_tree_model_get_path (model, &iter); } + + if (!path) + return; + row = gtk_tree_path_get_indices (path)[0]; existing_attendee = e_meeting_store_find_attendee_at_row (priv->store, row); el = e_meeting_attendee_get_edit_level (existing_attendee); diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 641bdc45d5..2a3857e3ad 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -182,6 +182,7 @@ itip_get_comp_attendee (ECalComponent *comp, ECal *client) return user_email; } g_free (address); + address = NULL; } for (it = e_list_get_iterator((EList *)al); @@ -197,7 +198,6 @@ itip_get_comp_attendee (ECalComponent *comp, ECal *client) char *user_email = g_strdup (itip_strip_mailto (attendee->value)); e_cal_component_free_attendee_list (attendees); - g_free (address); return user_email; } } |