Search
lxdream.org :: lxdream/src/gtkui/ctrl_dlg.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/ctrl_dlg.c
changeset 628:bd46e2c4c479
prev616:527ab167712b
next669:ab344e42bca9
author nkeynes
date Fri Feb 08 00:59:15 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix premature deletion of the old device when changing devices
file annotate diff log raw
1.1 --- a/src/gtkui/ctrl_dlg.c Tue Jan 29 10:38:34 2008 +0000
1.2 +++ b/src/gtkui/ctrl_dlg.c Fri Feb 08 00:59:15 2008 +0000
1.3 @@ -225,7 +225,9 @@
1.4 assert(devclz != NULL);
1.5 if( data->new_device != NULL ) {
1.6 if( data->new_device->device_class != devclz ) {
1.7 - data->new_device->destroy(data->new_device);
1.8 + if( data->new_device != data->old_device ) {
1.9 + data->new_device->destroy(data->new_device);
1.10 + }
1.11 data->new_device = maple_new_device(devname);
1.12 }
1.13 } else {
.