[gnome-control-center] search: Fix memory leak
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] search: Fix memory leak
- Date: Mon, 19 Jun 2017 11:18:40 +0000 (UTC)
commit 38ac1d1d766ed26fd8c41c359a9802bbfc47af9f
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat Jun 17 11:03:30 2017 +0530
search: Fix memory leak
The container returned by g_variant_get_strv() should be
freed with g_free().
https://bugzilla.gnome.org/show_bug.cgi?id=783885
panels/search/cc-search-locations-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/search/cc-search-locations-dialog.c b/panels/search/cc-search-locations-dialog.c
index 1890764..6d268df 100644
--- a/panels/search/cc-search-locations-dialog.c
+++ b/panels/search/cc-search-locations-dialog.c
@@ -374,6 +374,8 @@ switch_tracker_get_mapping (GValue *value,
break;
}
+ g_free (locations);
+
g_value_set_boolean (value, found);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]