[gegl-gtk] gegl-gtk-view: plug a memory leak
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-gtk] gegl-gtk-view: plug a memory leak
- Date: Sat, 3 Sep 2011 15:35:55 +0000 (UTC)
commit ede9d0208041767616f57c1a5d129be4e90b2825
Author: Massimo Valentini <mvalentini src gnome org>
Date: Sat Sep 3 17:12:32 2011 +0200
gegl-gtk-view: plug a memory leak
memory leak visible with valgrind, resizing few times
the window of
examples/.libs/gegl-gtk-basic file.jpg
BTW, cairo_surface_destroy calls cairo_surface_finish
if not yet called.
gegl-gtk/gegl-gtk-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl-gtk/gegl-gtk-view.c b/gegl-gtk/gegl-gtk-view.c
index 79748ad..ec68a8e 100644
--- a/gegl-gtk/gegl-gtk-view.c
+++ b/gegl-gtk/gegl-gtk-view.c
@@ -344,7 +344,7 @@ draw_implementation (GeglGtkViewPrivate *priv, cairo_t *cr, GdkRectangle *rect)
cairo_set_source_surface (cr, surface, rect->x, rect->y);
cairo_paint (cr);
- cairo_surface_finish (surface);
+ cairo_surface_destroy (surface);
g_free (buf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]