On 14.01.2011, at 10:02, Denton Thomas wrote: > Sorry - Neglected to mention: > > FLTK 1.3.0rc3-8207 (current) > gcc 4.4.3 > Linux (tinycore 3.4.1) > >> Valgrind-ing, I believe I found the source of a leak in Fl_x.cxx. >> >> fl_get_font_xfld() malloc's and returns a char * to fl_new_ic(), but the >> latter does not free this space. From what I can tell, fl_new_ic() needs to >> do that. >> >> This seems to solve the problem: >> >> >> 365c365 >> < char *fnt; >> --- >>> char *fnt = NULL; >> 446a447 >>> if (fnt && must_free_fnt) free(fnt); >> >> >> The patch makes reflects how fl_set_spot() handles the same situation (line >> 513).
Thanks for the patch. Please do not post in this group - it is for automated bug reports from our STR system only. Please use the general fltk group. Thank you, - Matthias _______________________________________________ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs