Im using the following code to populate a nsmutablearray
_unique = [NSMutableArray array];
for (id obj in statusDateArray) {
if (![_unique containsObject:obj]) {
[_unique addObject:obj];
}
}
But im getting the following error sometimes.
malloc: * error for object 0x15d86b120: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug
why am I getting this error and how can i sort this out?
weakpointer involved somewhere... Have you done what the error message mentioned? - Droppy