[librsvg] rsvg-test.c: Fix a couple of leaked strings



commit 7035711b7eaf60a7ac06e9e0854f7834cc07df40
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Feb 17 10:24:18 2017 -0600

    rsvg-test.c: Fix a couple of leaked strings

 tests/rsvg-test.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/rsvg-test.c b/tests/rsvg-test.c
index 0a86b13..9af96db 100644
--- a/tests/rsvg-test.c
+++ b/tests/rsvg-test.c
@@ -225,6 +225,8 @@ read_png (const char *test_name)
 
   reference_uri = g_strconcat (test_name, "-ref.png", NULL);
   file = g_file_new_for_uri (reference_uri);
+  g_free (reference_uri);
+
   stream = g_file_read (file, NULL, &error);
   g_assert_no_error (error);
   g_assert (stream);
@@ -304,6 +306,7 @@ rsvg_cairo_check (gconstpointer data)
     cairo_destroy (cr);
 
     g_object_unref (rsvg);
+    g_free (test_file_base);
 }
 
 int


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