# To subscribers of the xforms list from Yann Guichoux <Yann.Guichoux@univ-brest.fr> :
Hi all,
Many thanks for releasing xforms under LGPL ! This is great !
I compiled the xforms sources under solaris 2.8 without any problem
and still
get a segmentation fault when freeing a "multi-fl_image" (an animateg
gif)
I corrected the function flimage_free (image.c) as follow ; for
now, it seems
to work fine .
Cheers
Yann
--------------------------
int
flimage_free(FL_IMAGE * image)
{
FL_IMAGE *im, *imnext;
for (im = image; im; im = imnext)
{
flimage_freemem(im);
if (im == image) <----------- the only added line
flimage_close(im);
imnext = im->next;
if (im->infile)
fl_free(im->infile);
if (im->outfile)
fl_free(im->outfile);
im->infile = im->outfile = 0;
im->next = 0;
fl_free(im);
}
return 0;
}
# To subscribers of the xforms list from "T.C. Zhao"
<tc_zhao@yahoo.com> :
thanks for the example program. It worked fine
on my systems (linux 2.0.34 and linux 0.99).
It could be that the problem has already
been fixed in the latest source.
--- Jens Thoms Toerring <Jens.Toerring@physik.fu-berlin.de> wrote:
> # To subscribers of the xforms list from Jens Thoms Toerring
> <Jens.Toerring@physik.fu-berlin.de> :
> > Hello,
> > I promised to write an example program as simple as possible that
still
> crashes with a segmentation fault on flimage_free( ). Here it is:
-------------
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Wed May 01 2002 - 13:54:18 EDT