rabbitmq / rabbitmq-objc-client

RabbitMQ client for Objective-C and Swift
https://rabbitmq.com
Other
241 stars 85 forks source link

Remove used callbacks from dictionary #9

Closed camelpunch closed 8 years ago

camelpunch commented 8 years ago

RMQTCPSocketTransport stores callbacks for later use inside a dictionary. It should remove these after they've been used, to avoid leaking memory.

Fixing this would be a good opportunity to consolidate the connect and disconnect callbacks into the same mechanism.