Using: fltk-1.3.x-r8276 / Linux 2.6.33.3 (tinycore) on i686 / gcc 4.4.3
Found via Valgrind and a one-button "hello" program. In Fl_x.cxx, fl_init_xim()
allocates an XIM object using a call to libx11. fl_init_xim() only deallocates
that object in some cases, rather than in all. It looks like the object is not
needed after fl_ini_xim(), so it should be deallocated locally.
Patch:
540c541
< XIMStyles *xim_styles;
---
> XIMStyles *xim_styles = NULL;
569a571,575
>
> if (xim_styles) {
> XFree(xim_styles);
> }
>
Cheers,
DLT
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk