[librsvg] Fix pixbuf refcounting
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Fix pixbuf refcounting
- Date: Wed, 10 Nov 2010 20:48:46 +0000 (UTC)
commit 105b068605e0ad6eaed3471d9558d0275afb16fa
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 10 21:47:40 2010 +0100
Fix pixbuf refcounting
The surface takes over the reference, so don't add an extra one.
rsvg-cairo-draw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-cairo-draw.c b/rsvg-cairo-draw.c
index e42b298..b9a95f8 100644
--- a/rsvg-cairo-draw.c
+++ b/rsvg-cairo-draw.c
@@ -971,7 +971,7 @@ rsvg_cairo_pop_render_stack (RsvgDrawingCtx * ctx)
gdk_pixbuf_get_height (output),
gdk_pixbuf_get_rowstride (output));
cairo_surface_set_user_data (surface, &surface_pixel_data_key,
- g_object_ref (output),
+ output,
(cairo_destroy_func_t) g_object_unref);
} else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]