[planner] Fix two more simple memleaks
- From: Maurice van der Pot <mvdpot src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [planner] Fix two more simple memleaks
- Date: Tue, 24 Nov 2009 20:04:24 +0000 (UTC)
commit 21c8321a94520d3dfc66841cab77e0c46cdf9899
Author: Maurice van der Pot <griffon26 kfk4ever com>
Date: Sat Nov 7 01:00:00 2009 +0100
Fix two more simple memleaks
src/planner-gantt-view.c | 2 ++
src/planner-usage-view.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/planner-gantt-view.c b/src/planner-gantt-view.c
index b1e08f0..d7df3b8 100644
--- a/src/planner-gantt-view.c
+++ b/src/planner-gantt-view.c
@@ -1003,6 +1003,8 @@ gantt_view_update_row_height (PlannerGanttView *view)
if (path)
gtk_tree_path_free (path);
+ g_list_free (cols);
+
/* Sync with the gantt widget. */
g_object_set (gantt,
"header_height", header_height,
diff --git a/src/planner-usage-view.c b/src/planner-usage-view.c
index 5305795..c4b55bd 100644
--- a/src/planner-usage-view.c
+++ b/src/planner-usage-view.c
@@ -576,6 +576,8 @@ usage_view_update_row_and_header_height (PlannerView *view)
if (path)
gtk_tree_path_free (path);
+ g_list_free (cols);
+
/* Sync with the chart widget. */
g_object_set (chart,
"header_height", header_height,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]