Fixed a memory leak in CompositeChat.