[epiphany] ephy-file-helpers: plug a leak



commit d829f324c2c9741e06d7e8e9cd8088c185389031
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Tue Sep 4 11:52:56 2012 +0300

    ephy-file-helpers: plug a leak
    
    recursive delete function is leaking a reference.

 lib/ephy-file-helpers.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 628d3b1..4492f7f 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -950,6 +950,7 @@ ephy_file_delete_dir_recursively (GFile *directory, GError **error)
 			ret = g_file_delete (child, NULL, error);
 
 		g_object_unref (info);
+		g_object_unref (child);
 
 		if (!ret)
 			goto out;



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