예제 #1
0
 /// <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();
     }
 }
예제 #2
0
 public void Release()
 {
     if (_rtmChannelPtr == IntPtr.Zero)
     {
         Debug.LogError("_rtmChannelPtr is null");
         return;
     }
     channel_release(_rtmChannelPtr);
     _rtmChannelPtr = IntPtr.Zero;
     if (_channelEventHandler != null)
     {
         _channelEventHandler.Release();
     }
 }