edit-dialog: fix memory leak

Also, evolution set altrep to NULL usually, we better do the same.
This commit is contained in:
Erick Pérez Castellanos
2014-12-24 11:09:45 -05:00
parent 8ffb7fcd61
commit 375425573d
+2 -2
View File
@@ -353,8 +353,8 @@ update_summary (GtkEntry *entry,
priv = gcal_edit_dialog_get_instance_private (GCAL_EDIT_DIALOG (user_data));
summary.value = g_strdup (gtk_entry_get_text (entry));
summary.altrep = summary.value;
summary.value = gtk_entry_get_text (entry);
summary.altrep = NULL;
e_cal_component_set_summary (priv->component, &summary);
e_cal_component_commit_sequence (priv->component);