[goffice] fixed leaks.



commit 77590e4ea46e5ca5cca5a40999a75fbe5d6e7a97
Author: Jean Brefort <jean brefort normalesup org>
Date:   Wed Dec 9 20:38:40 2009 +0100

    fixed leaks.

 ChangeLog                     |    4 ++++
 goffice/graph/gog-axis-line.c |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1831d14..423e8cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-12-09  Jean Brefort  <jean brefort normalesup org>
 
+	* goffice/graph/gog-axis-line.c (xyz_process): fixed leaks.
+
+2009-12-09  Jean Brefort  <jean brefort normalesup org>
+
 	* goffice/app/go-plugin.c (append_dir), (go_plugins_set_dirs),
 	(go_plugins_init), (go_plugins_add), (go_plugins_shutdown): allow several
 	modules to call go_plugins_init without interfering.
diff --git a/goffice/graph/gog-axis-line.c b/goffice/graph/gog-axis-line.c
index cf56baa..ca5cb38 100644
--- a/goffice/graph/gog-axis-line.c
+++ b/goffice/graph/gog-axis-line.c
@@ -1819,22 +1819,28 @@ xyz_process (GogAxisBaseAction action, GogView *view, GogViewPadding *padding,
 	if (axis_type == GOG_AXIS_X) {
 		axes  = gog_chart_get_axes (axis_base->chart, GOG_AXIS_Y);
 		axis1 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		axes  = gog_chart_get_axes (axis_base->chart, GOG_AXIS_Z);
 		axis2 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		c_map = gog_chart_map_3d_new (axis_base->chart, plot_area,
 			axis_base->axis, axis1, axis2);
 	} else if (axis_type == GOG_AXIS_Y) {
 		axes  = gog_chart_get_axes (axis_base->chart, GOG_AXIS_Z);
 		axis1 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		axes  = gog_chart_get_axes (axis_base->chart, GOG_AXIS_X);
 		axis2 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		c_map = gog_chart_map_3d_new (axis_base->chart, plot_area,
 			axis2, axis_base->axis, axis1);
 	} else {
 		axes  = gog_chart_get_axes (axis_base->chart, GOG_AXIS_X);
 		axis1 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		axes  = gog_chart_get_axes (axis_base->chart, GOG_AXIS_Y);
 		axis2 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		c_map = gog_chart_map_3d_new (axis_base->chart, plot_area,
 			axis1, axis2, axis_base->axis);
 	}



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