Re: [fltk.bugs] Fl_x.cxx - local malloc is not free'd, patch

2011-01-14 Thread Manolo Gouy
> 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 *

Re: [fltk.bugs] Fl_x.cxx - local malloc is not free'd, patch

2011-01-14 Thread Matthias Melcher
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

Re: [fltk.bugs] Fl_x.cxx - local malloc is not free'd, patch

2011-01-14 Thread Denton Thomas
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

[fltk.bugs] Fl_x.cxx - local malloc is not free'd, patch

2011-01-14 Thread Denton Thomas
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 *