internal override void OnDispose(IntPtr nativePtr) { if(m_OnEndTracingComplete != null) { m_OnEndTracingComplete = null; CfxApi.cfx_end_tracing_callback_set_managed_callback(NativePtr, 0, IntPtr.Zero); } base.OnDispose(nativePtr); }