]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Add code in dlg_filesel_set and dlg_fontsel_set which makes them
authorSimon Tatham <anakin@pobox.com>
Fri, 13 Apr 2012 18:02:30 +0000 (18:02 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 13 Apr 2012 18:02:30 +0000 (18:02 +0000)
commit53557336e0e30e75ed5cc43a90504ab7d748f934
tree972142b96d0bbce6e07ff9a757e9e9f3b38fea8b
parentf84d0ba02e943957b93e81d480d72d4f3d93ab7e
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: http://svn.tartarus.org/sgt/putty@9456 cda61777-01e9-0310-a592-d414129be87e
unix/gtkdlg.c