[gnome-calendar] edit-dialog: fix memory leak



commit 375425573d1e38ed401e1b8e93145dbe2a9dd019
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Wed Dec 24 11:07:37 2014 -0500

    edit-dialog: fix memory leak
    
    Also, evolution set altrep to NULL usually, we better do the same.

 src/gcal-edit-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index cf25065..89226a7 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]