Add code in dlg_filesel_set and dlg_fontsel_set which makes them
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 13 Apr 2012 18:02:30 +0000 (18:02 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 13 Apr 2012 18:02:30 +0000 (18:02 +0000)
commitbfcd86603c6bc91605bf5cf98c21170d8bd93726
tree972142b96d0bbce6e07ff9a757e9e9f3b38fea8b
parente6a9d23d0c6115c20cccdd28a084fefe8909ab3c
Add code in dlg_filesel_set and dlg_fontsel_set which makes them
duplicate the strings they pass to gtk_entry_set_text. I was already
doing that in dlg_editbox_set, but forgot to add the same code when I
revamped FontSpec and Filename to contain dynamically allocated
strings (r9314 and r9316 respectively). This fixes a bug where, on
some versions of GTK (but apparently not up-to-date versions), loading
a saved session causes gibberish to appear in file-selector edit boxes
accompanied by a valgrind error.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9456 cda61777-01e9-0310-a592-d414129be87e
unix/gtkdlg.c