[mutter] texture-tower: Remove potential leak



commit cd7a74fbcd0bfb1b8a528db4ddb87d83efa4e749
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Apr 26 09:45:21 2012 -0400

    texture-tower: Remove potential leak
    
    The expression in here does not match the one where we malloc the
    data.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674876

 src/compositor/meta-texture-tower.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/meta-texture-tower.c b/src/compositor/meta-texture-tower.c
index 2dee777..57e4d14 100644
--- a/src/compositor/meta-texture-tower.c
+++ b/src/compositor/meta-texture-tower.c
@@ -546,7 +546,7 @@ texture_tower_revalidate_client (MetaTextureTower *tower,
                            4 * dest_width,
                            dest_data);
 
-  if (dest_height < source_texture_height)
+  if (dest_texture_height < source_texture_height)
     {
       g_free (source_tmp1);
       g_free (source_tmp2);



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