[gnome-shell] Fix invalid unreference of CoglTexture



commit e3be74a31a19d2b756dcb0c7470b2645ca21fd90
Author: William Jon McCann <jmccann redhat com>
Date:   Mon Feb 1 10:14:07 2010 -0500

    Fix invalid unreference of CoglTexture
    
    cogl_texture_get_data doesn't increase the refcount, so don't try
    to decrement it.
    
    Signed-off-by: Colin Walters <walters verbum org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=608512

 src/shell-drawing.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-drawing.c b/src/shell-drawing.c
index a4c8930..c62713f 100644
--- a/src/shell-drawing.c
+++ b/src/shell-drawing.c
@@ -84,7 +84,6 @@ shell_fade_app_icon (ClutterTexture *source)
 
   cogl_texture_get_data (texture, COGL_PIXEL_FORMAT_RGBA_8888_PRE,
                          rowstride, pixels);
-  cogl_texture_unref (texture);
   
   fade_start = width / 2;
   fade_range = width - fade_start;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]