IrcProtocol: fix memory leak