[librsvg] Ensure GFile is unreferenced to avoid filename memory leak See commit 475764f



commit ab593f860660770bda46e0f02254bc85ac2a86a5
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 c443f08..c4be0d5 100644
--- a/rsvg-base-file-util.c
+++ b/rsvg-base-file-util.c
@@ -115,6 +115,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]