[librsvg/librsvg-2.40: 1/2] Ensure GFile is unreferenced to avoid filename memory leak See commit 475764f



commit 59f925e4c54a4f0c17a401cd88f31dee6f22d618
Author: Lovell Fuller <github lovell info>
Date:   Sat Jan 6 10:45:02 2018 +0000

    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 366fc4a..efef2df 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;
 }


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