[goffice] Fixed leak.



commit cf8b4312531201145fd20bfd316c94f0b66f0114
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Nov 13 16:59:30 2012 +0100

    Fixed leak.

 goffice/graph/gog-axis.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/goffice/graph/gog-axis.c b/goffice/graph/gog-axis.c
index 1159868..dd4568e 100644
--- a/goffice/graph/gog-axis.c
+++ b/goffice/graph/gog-axis.c
@@ -2787,6 +2787,7 @@ add_color_map_cb (GogAxisColorMap const *map, struct ColorMapState *state)
 	gtk_list_store_append (state->model, &iter);
 	gtk_list_store_set (state->model, &iter, 0, gog_axis_color_map_get_name (map),
 	                    1, pixbuf, 2, map, -1);
+	g_object_unref (pixbuf);
 	if (map == state->target)
 		gtk_combo_box_set_active_iter (state->combo, &iter);
 }



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