Fix crash on loading variant engine after changing variant
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 24 Mar 2016 16:25:44 +0000 (17:25 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 29 Mar 2016 14:51:34 +0000 (16:51 +0200)
commit29d4b054a804a2826b60e2777cd111dde1aac79f
tree8b9d323640e5cff0ef9620a0567ab282132b134d
parent081595f00415931efe58202f9e9981fae1de4ac6
Fix crash on loading variant engine after changing variant

The New Variant dialog did not store the variant name (and in fact
several other option values, such as nick names) in allocated memory,
but just by pointing to it, which made XBoard crash when the options
were parsed again (as part of an engine load), and it tried to free()
the old value.
dialogs.c
winboard/woptions.c