Change mSuccessCallback from ref to ptr.