[TIMOB-18028] iOS: Fix all memory leaks detected in static analyzer

Static analyzer detects potential memory leak of objects. These should be checked and fixed when necessary.
JIRA: https://jira.appcelerator.org/browse/TIMOB-18028