gsettings: check that children haven't been deleted before using them
authorTanu Kaskinen <tanuk@iki.fi>
Tue, 17 Apr 2018 06:07:38 +0000 (09:07 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 19 Apr 2018 11:45:06 +0000 (14:45 +0300)
commit8484b63c18741307e77c66d830a2bbde26dc834a
tree80c7d6374af4c85877212b865f8396ce8ce65517
parentf5ff5d8bf21ebe4d50487079d2f3f3f2b5b446c0
gsettings: check that children haven't been deleted before using them

According to the documentation of g_settings_list_children(), the listed
children may be removed at any time, so g_settings_get_child() may
return NULL. This is probably very unlikely to happen in practice, but
it's good to check anyway.
src/modules/gsettings/gsettings-helper.c