Wombat.MamaMsg.destroy C# (CSharp) Method

destroy() public method

Destroy a message and free any resources associated with it.
public destroy ( ) : void
return void
        public void destroy()
        {
            if (buffer != IntPtr.Zero)
            {
                Marshal.FreeHGlobal(buffer);
            }
            GC.KeepAlive(forwarder);
            GC.KeepAlive(callback);
            Dispose();
        }

Usage Example

Example #1
0
			public void onSendComplete(
				MamaPublisher publisher,
				MamaMsg message,
				MamaStatus.mamaStatus status,
				object closure)
			{
				message.destroy();
			}
MamaMsg