- free memory allocated by sane_get_devices()
merge-requests/1/head
Stéphane Voltz 2015-08-10 21:49:38 +02:00
rodzic e8c11a0849
commit 6e9f6de1bc
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -77,6 +77,7 @@
#define TAMARACK_CONFIG_FILE "tamarack.conf"
static const SANE_Device **devlist = NULL;
static int num_devices;
static Tamarack_Device *first_dev;
static Tamarack_Scanner *first_handle;
@ -950,12 +951,14 @@ sane_exit (void)
free ((void *) dev->sane.model);
free (dev);
}
if (devlist)
free (devlist);
}
SANE_Status
sane_get_devices (const SANE_Device ***device_list, SANE_Bool local_only)
{
static const SANE_Device **devlist = 0;
Tamarack_Device *dev;
int i;