kopia lustrzana https://gitlab.com/sane-project/backends
Free devlist in sane_exit.
rodzic
5176df83b0
commit
6ee85d58ac
|
@ -98,6 +98,7 @@ static SANE_Bool force_wait;
|
|||
static SANE_Int num_devices;
|
||||
static Mustek_Device *first_dev;
|
||||
static Mustek_Scanner *first_handle;
|
||||
static const SANE_Device **devlist = 0;
|
||||
|
||||
/* Array of newly attached devices */
|
||||
static Mustek_Device **new_dev;
|
||||
|
@ -5105,14 +5106,14 @@ sane_exit (void)
|
|||
free (dev->name);
|
||||
free (dev);
|
||||
}
|
||||
|
||||
if (devlist)
|
||||
free (devlist);
|
||||
sanei_ab306_exit (); /* may have to do some cleanup */
|
||||
}
|
||||
|
||||
SANE_Status
|
||||
sane_get_devices (const SANE_Device ***device_list, SANE_Bool local_only)
|
||||
{
|
||||
static const SANE_Device **devlist = 0;
|
||||
Mustek_Device *dev;
|
||||
SANE_Int i;
|
||||
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
CHANGES for the SANE Mustek backend
|
||||
|
||||
2001-05-06
|
||||
* Fixed memory leak in sane_get_devices ()
|
||||
|
||||
2001-04-29
|
||||
* Fixed several memory leaks.
|
||||
|
||||
2001-04-27
|
||||
* Released Mustek backend 1.0-107 (in CVS).
|
||||
|
||||
2001-04-23
|
||||
* Add internationalization support (mark all strings that can be translated
|
||||
with SANE_I18N()).
|
||||
|
|
Ładowanie…
Reference in New Issue