GNOME Bugzilla – Bug 342672
list returned by gconf_client_all_dirs/entries should be freed
Last modified: 2007-02-03 14:22:56 UTC
Another leak found by code inspection: gconf_client_all_dirs/entries return a list of newly allocated objects, both the object and the string itself need to be freed.
Created attachment 66041 [details] [review] patch the patch plugs the above mentioned leak and cleans up some minor bits and other problems (null-check some pointers before dereferencing etc). Once again the patch is fairly trivial but not tested (as I said I am doing some random code review and cannot run a self compiled settings-daemon at the moment)
Looks good, please apply.
2007-02-03 Jens Granseuer <jensgr@gmx.net> Patch by: Paolo Borelli <pborelli@katamail.com> * gnome-settings-keybindings.c: (get_screens_list), (screen_exec_display_string), (entry_get_string), (bindings_get_entry), (gnome_settings_keybindings_load): plug some memory leaks (fixes bug #342672)