hid/gtk: Don't use dup_string where doing so would mix g_free() and free()
commit53a53695310aa9b7af7278ac93f5026d2bf59067
authorPeter Clifton <pcjc2@cam.ac.uk>
Thu, 29 Sep 2011 22:02:10 +0000 (29 23:02 +0100)
committerPeter Clifton <pcjc2@cam.ac.uk>
Thu, 29 Sep 2011 22:02:10 +0000 (29 23:02 +0100)
treeccb4a73ebea1fcf66d5680b28657c9a3262e2886
parent29c65d98352be5be38b2746ebfd9cc650a0ee04c
hid/gtk: Don't use dup_string where doing so would mix g_free() and free()

The core uses malloc(), strdup(), free() etc..
The GTK HID primarily uses g_malloc(), g_strdup(), g_free() etc..

Mixing them can lead to bad behaviour and hard to debug crashes. This
commit is not aimed at fixing any known bugs, but is "by inspection", as
I spotted some of these when working on a layer selector patch.
src/hid/gtk/gui-config.c