kopia lustrzana https://gitlab.com/sane-project/backends
rodzic
0e78307bdc
commit
5129434b99
|
@ -66,6 +66,7 @@
|
||||||
#define MIN(x,y) ((x)<(y) ? (x) : (y))
|
#define MIN(x,y) ((x)<(y) ? (x) : (y))
|
||||||
#define MAX(x,y) ((x)>(y) ? (x) : (y))
|
#define MAX(x,y) ((x)>(y) ? (x) : (y))
|
||||||
|
|
||||||
|
static const SANE_Device **devlist = 0;
|
||||||
static int num_devices = 0;
|
static int num_devices = 0;
|
||||||
static BH_Device *first_dev = NULL;
|
static BH_Device *first_dev = NULL;
|
||||||
static BH_Scanner *first_handle = NULL;
|
static BH_Scanner *first_handle = NULL;
|
||||||
|
@ -3231,7 +3232,6 @@ sane_init (SANE_Int *version_code, SANE_Auth_Callback authorize)
|
||||||
SANE_Status
|
SANE_Status
|
||||||
sane_get_devices (const SANE_Device ***device_list, SANE_Bool local)
|
sane_get_devices (const SANE_Device ***device_list, SANE_Bool local)
|
||||||
{
|
{
|
||||||
static const SANE_Device **devlist = 0;
|
|
||||||
BH_Device *dev;
|
BH_Device *dev;
|
||||||
int i;
|
int i;
|
||||||
DBG(3, "sane_get_devices called\n");
|
DBG(3, "sane_get_devices called\n");
|
||||||
|
@ -3879,5 +3879,8 @@ sane_exit (void)
|
||||||
next = dev->next;
|
next = dev->next;
|
||||||
free (dev);
|
free (dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (devlist)
|
||||||
|
free (devlist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue