* fixed memory leak in sane-exit()

DEVEL_2_0_BRANCH-1
Stéphane Voltz 2001-05-16 04:52:43 +00:00
rodzic 13c50862ed
commit e12c396ba5
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -99,6 +99,7 @@
static int num_devices = 0;
static Umax_PP_Descriptor *devlist = NULL;
static const SANE_Device **devarray = NULL;
static Umax_PP_Device *first_dev = NULL;
@ -926,6 +927,9 @@ sane_exit (void)
if (devlist != NULL)
free (devlist);
if (devarray != NULL)
free (devarray);
DBG (3, "exit: (...)\n");
num_devices = 0;
@ -934,7 +938,6 @@ sane_exit (void)
SANE_Status
sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
{
static const SANE_Device **devarray = NULL;
int i;
DBG (3, "get_devices\n");