summaryrefslogtreecommitdiff
path: root/backend/abaton.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/abaton.c')
-rw-r--r--backend/abaton.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/abaton.c b/backend/abaton.c
index 10f5c21..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;
@@ -1455,7 +1458,7 @@ sane_cancel (SANE_Handle handle)
if (s->AbortedByUser)
{
DBG (FLOW_CONTROL, "sane_cancel: Scan has not been initiated yet."
- "we probably recieved a signal while writing data.\n");
+ "we probably received a signal while writing data.\n");
s->AbortedByUser = SANE_FALSE;
}
else