[goffice] Fixed a memory leak.



commit 88496940709c9c31514798418ac74f5a7724c93f
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Jan 25 09:45:22 2010 +0100

    Fixed a memory leak.

 goffice/canvas/goc-graph.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/goffice/canvas/goc-graph.c b/goffice/canvas/goc-graph.c
index b02e63d..4429ce3 100644
--- a/goffice/canvas/goc-graph.c
+++ b/goffice/canvas/goc-graph.c
@@ -273,6 +273,7 @@ goc_graph_do_tooltip (GocGraph *graph)
 
 	/* get the GogView at the cursor position */
 	g_object_get (G_OBJECT (graph->renderer), "view", &view, NULL);
+	g_object_unref (view); /* we don't need a reference */
 	gog_view_get_view_at_point (view, x, y, &obj, NULL);
 	if (!obj)
 		goto tooltip;



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