From 71924fc48776c642fe8520febc384250cf55973c Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 31 May 2012 10:44:49 +0200 Subject: Fix memory leaks around gtk_tree_model_get() function --- calendar/alarm-notify/alarm-notify-dialog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/alarm-notify') diff --git a/calendar/alarm-notify/alarm-notify-dialog.c b/calendar/alarm-notify/alarm-notify-dialog.c index fc37d881a8..f4bc1f41c9 100644 --- a/calendar/alarm-notify/alarm-notify-dialog.c +++ b/calendar/alarm-notify/alarm-notify-dialog.c @@ -502,6 +502,10 @@ tree_selection_changed_cb (GtkTreeSelection *selection, gtk_tree_model_get (model, &iter, ALARM_FUNCINFO_COLUMN, &an->cur_funcinfo, -1); fill_in_labels (an, summary, description, location, occur_start, occur_end); + + g_free (summary); + g_free (description); + g_free (location); } else { gtk_widget_set_sensitive (an->snooze_btn, FALSE); gtk_widget_set_sensitive (an->edit_btn, FALSE); -- cgit v1.2.3