diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-10-08 12:33:06 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-10-08 12:33:06 +0200 |
commit | 24feb9f37f302c006ba51502da817325200e74d0 (patch) | |
tree | d4451782449e5fcbae9cbe3778c51a8c6cb3c36d /backend/agfafocus.c | |
parent | 76b69ebb381d40458339c9940135740797cbd2d4 (diff) | |
parent | cfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (diff) |
Merge tag 'upstream/1.0.25'
Upstream version 1.0.25
Diffstat (limited to 'backend/agfafocus.c')
-rw-r--r-- | backend/agfafocus.c | 5 |
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; |