If you get the memory back by just restarting the program, then I'd say it's not actually "leaking" memory, but simply using memeory. This might be just because you have a large scrollback buffer size and are in a lot of channels.

Try typing the command /clearall and see if the memory usage goes back to "normal".