[gtk+] themingengine: plug a couple of leaks
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] themingengine: plug a couple of leaks
- Date: Wed, 15 Jun 2011 12:13:45 +0000 (UTC)
commit b47c7405f29ceea3418214c0a40a3ab982ac047a
Author: Xan Lopez <xlopez igalia com>
Date: Wed Jun 15 14:13:20 2011 +0200
themingengine: plug a couple of leaks
gtk/gtkthemingengine.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index b43bda7..89b7109 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -2939,6 +2939,7 @@ gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine *engine,
stated = gdk_pixbuf_get_from_surface (surface, 0, 0,
cairo_image_surface_get_width (surface),
cairo_image_surface_get_height (surface));
+ cairo_surface_destroy (surface);
}
else if (state & GTK_STATE_FLAG_PRELIGHT)
{
@@ -2956,6 +2957,7 @@ gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine *engine,
stated = gdk_pixbuf_get_from_surface (surface, 0, 0,
cairo_image_surface_get_width (surface),
cairo_image_surface_get_height (surface));
+ cairo_surface_destroy (surface);
}
else
stated = scaled;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]