From 375425573d1e38ed401e1b8e93145dbe2a9dd019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Wed, 24 Dec 2014 11:07:37 -0500 Subject: [PATCH] edit-dialog: fix memory leak Also, evolution set altrep to NULL usually, we better do the same. --- src/gcal-edit-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index cf25065c..89226a75 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -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);