-
May 27th, 2013, 06:49 PM
#3
Originally Posted by
gianluca.bertani
Hello Ebrahim,
the LS client library for iOS is compatible with ARC and has no special memory management needs, just common retain/release practices. In particular, the LS client retains the delegate passed on the openConnectionWithInfo method and releases it on closeConnection. Similarly, table delegates are retained on subscribeTable/subscribeItems and released on unsubscribeTable.
So, pay attention you do the clean up in the correct order to avoid memory leaks:
1) unsubscribe tables
2) close the LS client connection
3) set LS client to nil
4) remove the view controller
Hope this helps.
Best regards,
Gianluca
Hello Gianluca,
I do all of thing , and check memory for my application , the LS is released but with 10 or 15 second delay.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:15 PM.
Bookmarks