in reply to Re^2: returning an object in XSin thread returning an object in XS
Oh I found it. The line
result = (rect*)safemalloc(sizeof(rect*));
result = (rect*)safemalloc(sizeof(rect));