[gnome-control-center] search: Fix crash on clicking 'Search Locations'
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] search: Fix crash on clicking 'Search Locations'
- Date: Thu, 19 Sep 2019 17:23:18 +0000 (UTC)
commit 2fb0ff250b3825c11ba8e07b96c596222dea8f69
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Thu Sep 19 22:45:23 2019 +0530
search: Fix crash on clicking 'Search Locations'
When creating a Page, the dialog variable wasn't set and thus
dereferencing a NULL in a later code resulting a crash.
This was introduced in 14b9f65ba47c100af7a49aeb180e8a7d98bfaacd
panels/search/cc-search-locations-dialog.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/panels/search/cc-search-locations-dialog.c b/panels/search/cc-search-locations-dialog.c
index f6dce2459..a767b3550 100644
--- a/panels/search/cc-search-locations-dialog.c
+++ b/panels/search/cc-search-locations-dialog.c
@@ -261,6 +261,7 @@ get_tracker_locations (CcSearchLocationsDialog *self)
path = path_from_tracker_dir (locations[idx]);
location = g_slice_new0 (Place);
+ location->dialog = self;
location->location = g_file_new_for_commandline_arg (path);
location->display_name = g_file_get_basename (location->location);
location->place_type = PLACE_OTHER;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]