Remove another global variable leak

_curInst would leak from an internal callback.