[gegl/gsoc2009-gpu] Fix memory leaks in tile lock mode tests



commit ca2957c24a9932f7cb30b3eedded0fb9ef2238b4
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date:   Thu Aug 20 05:49:31 2009 +0800

    Fix memory leaks in tile lock mode tests

 ...t-gegl-tile-lock-mode-gpu-write-then-gpu-read.c |    1 +
 .../test-gegl-tile-lock-mode-write-then-gpu-read.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-gegl-tile-lock-mode-gpu-write-then-gpu-read.c b/tests/test-gegl-tile-lock-mode-gpu-write-then-gpu-read.c
index 58f7d57..5e08cbf 100644
--- a/tests/test-gegl-tile-lock-mode-gpu-write-then-gpu-read.c
+++ b/tests/test-gegl-tile-lock-mode-gpu-write-then-gpu-read.c
@@ -91,6 +91,7 @@ main (gint    argc,
           }
 
       gegl_tile_unlock (tile);
+      g_free (tile_components);
     }
 
   g_free (components);
diff --git a/tests/test-gegl-tile-lock-mode-write-then-gpu-read.c b/tests/test-gegl-tile-lock-mode-write-then-gpu-read.c
index 1d708e5..d7c7a5a 100644
--- a/tests/test-gegl-tile-lock-mode-write-then-gpu-read.c
+++ b/tests/test-gegl-tile-lock-mode-write-then-gpu-read.c
@@ -90,6 +90,7 @@ main (gint    argc,
           }
 
       gegl_tile_unlock (tile);
+      g_free (tile_components);
     }
 
   g_free (components);



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