[gnome-shell] [StShadowTexture] Fix invalid unref of CoglHandle
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [StShadowTexture] Fix invalid unref of CoglHandle
- Date: Tue, 26 Jan 2010 18:03:49 +0000 (UTC)
commit 2aa305b51ded3285d6bcdfb4f906ad675016ebdc
Author: Colin Walters <walters verbum org>
Date: Mon Jan 25 21:03:44 2010 -0500
[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 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-shadow-texture.c b/src/st/st-shadow-texture.c
index 57090ba..74ca923 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]