diff --git a/src/scanadf.c b/src/scanadf.c index 2a13cef..c898ac4 100644 --- a/src/scanadf.c +++ b/src/scanadf.c @@ -1709,6 +1709,7 @@ List of available devices:", prog_name); sane_cancel (device); sane_close (device); + sane_exit(); if (scriptWait) while (wait(NULL) != -1);