void kds_s2000w_handler_close(void* handle)
{
debug_printf(ALL, "kds_s2000w_handler_close");
- handler* h = (handler*) handle;
- if (h == NULL)
- return;
-
- kds_s2000w_client_close_session(h->sessionid);
- h->sessionid = 0;
json_object_put(resp_config);
resp_config = NULL;
kds_s2000w_client_response_free(resp);
image.data = NULL;
free(pnm_image.data);
pnm_image.data = NULL;
+
+ handler* h = (handler*) handle;
+ if (h == NULL)
+ return;
+
+ kds_s2000w_client_close_session(h->sessionid);
+ h->sessionid = 0;
free(h->current_scan_status);
h->current_scan_status = NULL;
free(h->current_metadata->image);
device_info->vendor = "Kodak";
device_info->model = "Kodak Alaris s2000w series";
device_info->type = "sheetfed scanner";
-
**device_list = device_info;
return SANE_STATUS_GOOD;