summaryrefslogtreecommitdiff
path: root/backend/abaton.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/abaton.c')
-rw-r--r--backend/abaton.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/abaton.c b/backend/abaton.c
index 6187166..4008c62 100644
--- a/backend/abaton.c
+++ b/backend/abaton.c
@@ -82,6 +82,7 @@
+static const SANE_Device **devlist = 0;
static int num_devices;
static Abaton_Device *first_dev;
static Abaton_Scanner *first_handle;
@@ -905,12 +906,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;
Abaton_Device *dev;
int i;