[goffice] more leaks fixed.



commit 0cb2eaf35f44955aa7f25a6b8f2142c6a0686c63
Author: Jean Brefort <jean brefort normalesup org>
Date:   Wed Dec 9 20:58:58 2009 +0100

    more leaks fixed.

 ChangeLog                     |    5 +++++
 goffice/graph/gog-grid-line.c |    6 ++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 423e8cd..579518d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-12-09  Jean Brefort  <jean brefort normalesup org>
 
+	* goffice/graph/gog-grid-line.c (gog_grid_line_xyz_render): fixed
+	some more leaks.
+
+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>
diff --git a/goffice/graph/gog-grid-line.c b/goffice/graph/gog-grid-line.c
index c984518..a0dab96 100644
--- a/goffice/graph/gog-grid-line.c
+++ b/goffice/graph/gog-grid-line.c
@@ -267,22 +267,28 @@ gog_grid_line_xyz_render (GogGridLine *grid_line, GogView *view,
 	if (axis_type == GOG_AXIS_X) {
 		axes  = gog_chart_get_axes (chart, GOG_AXIS_Y);
 		axis1 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		axes  = gog_chart_get_axes (chart, GOG_AXIS_Z);
 		axis2 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		c_map = gog_chart_map_3d_new (chart, plot_area,
 			axis, axis1, axis2);
 	} else if (axis_type == GOG_AXIS_Y) {
 		axes  = gog_chart_get_axes (chart, GOG_AXIS_Z);
 		axis1 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		axes  = gog_chart_get_axes (chart, GOG_AXIS_X);
 		axis2 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		c_map = gog_chart_map_3d_new (chart, plot_area,
 			axis2, axis, axis1);
 	} else {
 		axes  = gog_chart_get_axes (chart, GOG_AXIS_X);
 		axis1 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		axes  = gog_chart_get_axes (chart, GOG_AXIS_Y);
 		axis2 = GOG_AXIS (axes->data);
+		g_slist_free (axes);
 		c_map = gog_chart_map_3d_new (chart, plot_area,
 			axis1, axis2, axis);
 	}



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