Hi,

  Thanks, but this is an internal callback used only for memory monitoring.
It is actually supposed to be called after the handle has been released.
Added a few comments.

Best,
Scuri


Em qua., 15 de jan. de 2020 às 08:47, Ranier Vilela <ranier_...@hotmail.com>
escreveu:

> Hi,
> win\iupwin_image.c (line 887)
>
> handle is freed at line 872, and is passed to function cb if has
> IMAGEDESTROY_CB.
> function cb they have no way of knowing that the pointer is invalid!
>
> Wouldn't it be better to call cb first, and then release the pointer?
>
> regards,
> Ranier Vilela
>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to