summaryrefslogtreecommitdiff
path: root/backend/agfafocus.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/agfafocus.c')
-rw-r--r--backend/agfafocus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/agfafocus.c b/backend/agfafocus.c
index bc21558..45d103f 100644
--- a/backend/agfafocus.c
+++ b/backend/agfafocus.c
@@ -51,6 +51,7 @@
#undef Byte
#define Byte SANE_Byte
+static const SANE_Device **devlist = 0;
static int num_devices;
static AgfaFocus_Device *agfafocus_devices;
@@ -1323,12 +1324,14 @@ sane_exit (void)
sane_close (dev->handle);
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;
AgfaFocus_Device *dev;
int i;