g_settings_schema_list: some fixes
authorRyan Lortie <desrt@desrt.ca>
Mon, 28 Oct 2013 16:29:15 +0000 (09:29 -0700)
committerRyan Lortie <desrt@desrt.ca>
Mon, 28 Oct 2013 16:44:05 +0000 (09:44 -0700)
commit066df98849e890761a39361a4f5267ae3faa12b0
tree6e1b87f1403f8b8ad9f10eac824047351c190910
parent5616e03f7a89a7dc83438b82e71d31e6456d2675
g_settings_schema_list: some fixes

Prevent a crash in the case that gvdb_table_list() returns NULL (ie:
because a schema has no keys).

Stop a memory leak caused by pointlessly stealing keys from a hashtable
(after we quarked them already).

Stop allocating an extra entry at the end of an array for a terminator
(that we never wrote anyway) when all functions using this API refer to
the out-parameter length array.

https://bugzilla.gnome.org/show_bug.cgi?id=711016
gio/gsettingsschema.c