Re: [Iup-users] IUP 3.29 Possible leak at iupwin_font.c

2020-07-10 Thread Antonio Scuri
16:12 > Para: IUP discussion list. > Assunto: [Iup-users] IUP 3.29 Possible leak at iupwin_font.c > > Attached patch try to fix. > > regards, > > Ranier Vilela___ > Iup-users mailing list > Iup-users@lists.sourceforge.net &

Re: [Iup-users] IUP 3.29 Possible leak at iupwin_font.c

2020-07-10 Thread Ranier Vilela
De: Ranier Vilela Enviado: sexta-feira, 10 de julho de 2020 16:12 Para: IUP discussion list. Assunto: [Iup-users] IUP 3.29 Possible leak at iupwin_font.c Attached patch try to fix. regards, Ranier Vilela fix_possible_leak_iupwin_font.patch Description: fix_possible_leak_iupwin_font.patch

[Iup-users] IUP 3.29 Possible leak at iupwin_font.c

2020-07-10 Thread Ranier Vilela
Hi Scuri, There are a possible leak at (src/win/iupwin_font.c) At line 89, IUP call: fonts = (IwinFont*)iupArrayInc(win_fonts); To create room for the next font, but uses var i with count value. var i must be count + 1, otherwise will replace the last font, leaking last pointer font. regards,