aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-meeting-list-view.c6
-rw-r--r--calendar/gui/itip-utils.c2
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;
}
}