From e94622c319e4307617b202f19d3ec05b21a9bb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 27 Sep 2015 08:20:20 +0200 Subject: merge to 1.0.25+git20150927 --- backend/sp15c.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backend/sp15c.c') diff --git a/backend/sp15c.c b/backend/sp15c.c index 7a3808e..3937a30 100644 --- a/backend/sp15c.c +++ b/backend/sp15c.c @@ -311,7 +311,6 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize) SANE_Status sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only) { - static const SANE_Device **devlist = 0; struct sp15c *dev; int i; @@ -990,6 +989,9 @@ sane_exit (void) free (dev->buffer); free (dev); } + + if (devlist) + free (devlist); } /* sane_exit */ /* }################ internal (support) routines ################{ */ -- cgit v1.2.3