GSettings: fix mixed use of a pointer