xscanimage killed in free()

Kazuhiro Sasayama (kaz@hypercore.co.jp)
07 Oct 1997 13:49:56 +0900

xscanimage is sometimes killed in free() when options are
reloaded. It seems trying to free a freed memory.

I hope this patch fixes it:

Index: frontend/gtkglue.c
===================================================================
RCS file: /cvsroot/sane/sane/frontend/gtkglue.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gtkglue.c
--- gtkglue.c 1997-09-30 11:09:47+09 1.1.1.1
+++ gtkglue.c 1997-10-07 13:19:33+09
@@ -825,6 +825,7 @@
if (elem->menu[j].label)
free (elem->menu[j].label);
free (elem->menu);
+ elem->menu = NULL;
}
}
}

Excuse my not writing a ChangeLog entry.

-- 
Kaz Sasayama <kaz@hypercore.co.jp>
* Hypercore Software Design, Ltd. <URL:http://www.spice.or.jp/%7Ehypercor/>

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com