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). DLT _______________________________________________ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs