summaryrefslogtreecommitdiff
path: root/gdk/gdkcairo.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2005-06-10 19:53:47 +0000
committerKjartan Maraas <kmaraas@src.gnome.org>2005-06-10 19:53:47 +0000
commit3003d2edc4d6af95f0aaae1f93b9b6d66779eb47 (patch)
tree1312255cfb078dd1165f528b1c5117204feb7b52 /gdk/gdkcairo.c
parentfa6f8b9401a81681a803ad6f2574deb3e0bbee9d (diff)
downloadgtk+-3003d2edc4d6af95f0aaae1f93b9b6d66779eb47.tar.gz
Destroy the cairo surface when done with it. Plugs a fairly large leak in
2005-06-10 Kjartan Maraas <kmaraas@gnome.org> * gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the cairo surface when done with it. Plugs a fairly large leak in some cases. ==6014== 1999824 (115640 direct, 1884184 indirect) bytes in 826 blocks are definitely lost in loss record 25239 of 25250 Like this from nautilus.
Diffstat (limited to 'gdk/gdkcairo.c')
-rw-r--r--gdk/gdkcairo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 4e498546fa..267fd1676d 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -215,6 +215,7 @@ gdk_cairo_set_source_pixbuf (cairo_t *cr,
}
cairo_set_source_surface (cr, surface, pixbuf_x, pixbuf_y);
+ cairo_surface_destroy (surface);
}
#define __GDK_CAIRO_C__