File librsvg-post-2.40.20-updates.patch of Package librsvg
From 59f925e4c54a4f0c17a401cd88f31dee6f22d618 Mon Sep 17 00:00:00 2001
From: Lovell Fuller <github@lovell.info>
Date: Sat, 6 Jan 2018 10:45:02 +0000
Subject: [PATCH] Ensure GFile is unreferenced to avoid filename memory leak
See commit 475764f
---
rsvg-base-file-util.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/rsvg-base-file-util.c b/rsvg-base-file-util.c
index 366fc4a4..efef2dfa 100644
--- a/rsvg-base-file-util.c
+++ b/rsvg-base-file-util.c
@@ -116,6 +116,7 @@ rsvg_handle_new_from_file (const gchar * file_name, GError ** error)
}
g_free (base_uri);
+ g_object_unref (file);
return handle;
}
--
2.16.2