[glib/wip/gcleanup] unicode-encoding: Fix leaks in test



commit 1b0952866837dce421f1d8044bb6c4692770e43f
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 9 20:52:42 2013 +0100

    unicode-encoding: Fix leaks in test

 tests/unicode-encoding.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/unicode-encoding.c b/tests/unicode-encoding.c
index a231f10..75c982e 100644
--- a/tests/unicode-encoding.c
+++ b/tests/unicode-encoding.c
@@ -416,5 +416,8 @@ main (int argc, char **argv)
       line++;
     }
 
+  g_free (testfile);
+  g_array_free (ucs4, TRUE);
+  g_free (contents);
   return exit_status;
 }


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