From 2aa305b51ded3285d6bcdfb4f906ad675016ebdc Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 25 Jan 2010 21:03:44 -0500 Subject: [PATCH] [StShadowTexture] Fix invalid unref of CoglHandle This code appeared to treat the return value of clutter_texture_get_cogl_texture as having a new reference, but in fact it doesn't. https://bugzilla.gnome.org/show_bug.cgi?id=608119 --- src/st/st-shadow-texture.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/st/st-shadow-texture.c b/src/st/st-shadow-texture.c index 57090ba1c..74ca92302 100644 --- a/src/st/st-shadow-texture.c +++ b/src/st/st-shadow-texture.c @@ -86,7 +86,6 @@ st_shadow_texture_create_shadow (StShadowTexture *st, cogl_texture_get_data (texture, COGL_PIXEL_FORMAT_A_8, rowstride_in, pixels_in); - cogl_texture_unref (texture); if ((guint) st->blur_radius == 0) {