[nautilus] Fix gfile leak
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Fix gfile leak
- Date: Tue, 11 Sep 2012 16:05:44 +0000 (UTC)
commit 4d66b2cfe1caba2dcb86d933e1f81f7ecec22241
Author: William Jon McCann <jmccann redhat com>
Date: Mon Sep 10 23:11:34 2012 -0400
Fix gfile leak
https://bugzilla.gnome.org/show_bug.cgi?id=683769
src/nautilus-bookmark-list.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-bookmark-list.c b/src/nautilus-bookmark-list.c
index 8733252..b053b7f 100644
--- a/src/nautilus-bookmark-list.c
+++ b/src/nautilus-bookmark-list.c
@@ -498,10 +498,12 @@ load_io_thread (GSimpleAsyncResult *result,
file = nautilus_bookmark_list_get_file ();
if (!g_file_query_exists (file, NULL)) {
+ g_object_unref (file);
file = nautilus_bookmark_list_get_legacy_file ();
}
g_file_load_contents (file, NULL, &contents, NULL, NULL, &error);
+ g_object_unref (file);
if (error != NULL) {
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]