[gnome-control-center/gnome-3-24] search: Fix a GFile leak
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-24] search: Fix a GFile leak
- Date: Fri, 7 Jul 2017 13:39:50 +0000 (UTC)
commit de17fd61edb9469a9f914b078c970c06c871ae9a
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Jun 19 11:30:12 2017 +0200
search: Fix a GFile leak
https://bugzilla.gnome.org/show_bug.cgi?id=783885
panels/search/cc-search-locations-dialog.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/search/cc-search-locations-dialog.c b/panels/search/cc-search-locations-dialog.c
index 6d268df..3d2ec8a 100644
--- a/panels/search/cc-search-locations-dialog.c
+++ b/panels/search/cc-search-locations-dialog.c
@@ -370,7 +370,10 @@ switch_tracker_get_mapping (GValue *value,
for (idx = 0; locations[idx] != NULL; idx++)
{
location = g_file_new_for_path (path_from_tracker_dir(locations[idx]));
- if ((found = g_file_equal (location, place->location)))
+ found = g_file_equal (location, place->location);
+ g_object_unref (location);
+
+ if (found)
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]