[goffice] Canvas: plug leak.



commit 5d28502170c8d1dd7534eacf079ee947e4b2c6d7
Author: Morten Welinder <terra gnome org>
Date:   Sat Sep 19 08:19:25 2009 -0400

    Canvas: plug leak.

 goffice/utils/go-styled-object.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/goffice/utils/go-styled-object.c b/goffice/utils/go-styled-object.c
index 62422b6..1658b48 100644
--- a/goffice/utils/go-styled-object.c
+++ b/goffice/utils/go-styled-object.c
@@ -190,6 +190,7 @@ go_styled_object_set_cairo_line (GOStyledObject const *so, cairo_t *cr)
 		cairo_matrix_init_scale (&mat, scalex, scaley);
 		cairo_pattern_set_matrix (cp, &mat);
 		cairo_set_source (cr, cp);
+		cairo_pattern_destroy (cp);
 		break;
 	}
 	}



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