emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.58k stars 413 forks source link

fix: CocoaMQTTTimer memory leak #473

Closed Faizan-92 closed 1 year ago

Faizan-92 commented 1 year ago

First of all, thanks for this amazing library. I have noticed one minor memory leak in CocoaMQTTTimer class. Screenshot 2022-07-27 at 8 06 16 PM I am able to resolve it by these changes. Requesting you guys to have a look at it and merge it if there are no concerns. Thanks.

leeway1208 commented 1 year ago

Thank you!