]> asedeno.scripts.mit.edu Git - PuTTY.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)
commit047dc326b4a86804ad0b7549068cf8a540096165
tree972142b96d0bbce6e07ff9a757e9e9f3b38fea8b
parent63cb9c835663881e2c473753b7e54d2ceb2b7d47
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.

[originally from svn r9456]
[r9314 == 9c75fe9a3fa5e6b709f1c210795d1140ca1be2e8]
[r9316 == 62cbc7dc0b33808dc8794c59f60971fbba97894b]
unix/gtkdlg.c