Removed Frank's memleak fix. The memory is allocated only once in

sanei_usb_init, not in sanei_usb_open.  So releasing it in sanei_usb_close
breaks backends that open devices more than once.
merge-requests/1/head
Henning Geinitz 2003-04-20 14:59:07 +00:00
rodzic 2a36b0592b
commit 74de40f1da
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -16,7 +16,11 @@
* doc/descriptions/unsupported.desc: Removed Epson Perfection 660
(now supported by snapscan backend), Primax Jewel 4800 (teco2).
Added Enhans/E-Lux j-6121 and Visioneer OneTouch 5300 USB.
* sanei/sanei_usb.c: Removed Frak's memleak fix. The memory is
allocated only once in sanei_usb_init, not in sanei_usb_open.
So releasing it in sanei_usb_close breaks backends that open
devices more than once.
2003-04-18 Frank Zago <fzago at austin dot rr dot com>
* backend/teco2.c backend/teco2.conf backend/teco2.h

Wyświetl plik

@ -775,10 +775,6 @@ sanei_usb_close (SANE_Int dn)
dn);
return;
}
if (devices[dn].devname) {
free(devices[dn].devname);
devices[dn].devname = NULL;
}
if (devices[dn].method == sanei_usb_method_scanner_driver)
close (devices[dn].fd);
else