[librsvg/librsvg-2.40] rsvg-test.c: Fix a couple of leaked strings
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.40] rsvg-test.c: Fix a couple of leaked strings
- Date: Wed, 4 Oct 2017 13:01:29 +0000 (UTC)
commit a84d3b425998b972c4edd0be587dc3b6899e756e
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 c4188b7..bbd3c5d 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]