summaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-09-22 19:07:50 +0300
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-09-23 17:14:53 +0300
commit921bc51c879648afc81bfb1b1f1a154e8b97ce6e (patch)
treec72fb4e858a715f918b34491d9918a39d85f5c03 /color.h
parentc4c636fb4ffa942f282d57556a579de311b96c43 (diff)
downloadsubsurface-921bc51c879648afc81bfb1b1f1a154e8b97ce6e.tar.gz
Make sure memory for default_dive_computer_device is allocated
When calling gtk-gui.c:set_default_dive_computer_device(), first free memory at default_dive_computer_device and then use strdup(). This fixed a case, where after selecting a device for the first time in the "Download" dialog, then pressing "OK" followed by "Cancel" (after a device error) the device text is garbled the next time the dialog is opened. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'color.h')
0 files changed, 0 insertions, 0 deletions