Spot on, thanks. Incrementing the ref count in setCallback sorted me right out.
In reply to Re^3: Inline::C callbacks to Perl by BrowserUk in thread Inline::C callbacks to Perl by BrowserUk