Oh I found it. The line
result = (rect*)safemalloc(sizeof(rect*));
should beresult = (rect*)safemalloc(sizeof(rect));
Regards,In reply to Re^3: returning an object in XS
by bipham
in thread returning an object in XS
by bipham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |