/// <summary> /// Releases all resources used by the RtmChannel instance. /// </summary> private void Release() { if (_rtmChannelPtr == IntPtr.Zero) { return; } channel_release(_rtmChannelPtr); _rtmChannelPtr = IntPtr.Zero; if (_channelEventHandler != null) { _channelEventHandler.Release(); } }
public void Release() { if (_rtmChannelPtr == IntPtr.Zero) { Debug.LogError("_rtmChannelPtr is null"); return; } channel_release(_rtmChannelPtr); _rtmChannelPtr = IntPtr.Zero; if (_channelEventHandler != null) { _channelEventHandler.Release(); } }