stackmob/stackmob-ios-sdk — pull request #59 by burczyk (2013-09-02 09:27:24+00:00)
Title: Fixed *__autoreleasing* parameter which causes EXC_BAD_ACCESS on device ...

When I created NSPredicate for my NSFetchedResultsController's NSFetchRequest with format like `name contains[c] %@ or ...` I noticed, that in Release mode on real iOS device it crashed in some cases (e.g. when it should return 0 results) in method `- (SMQuery *)or:(SMQuery *)query` of `SMQuery.m`.

I don't exactly know why, but `NSMutableDictionary *newParameters` caused EXC_BAD_ACCESS when method tried to `return self`. In my opinion it has something to do with `*__autoreleasing*` qualifier and passing reference to destination dictionary (like it was released prematurely).

Is it obligatory to do it your way? I changed your implementation to something like:
`- (void) copyFrom: (NSDictionary*) dict1 to: (NSMutableDictionary*) dict2` and it works without throwing errors.

Another interesting fact: on simulator error doesn't occur, only on real device (tested on iPod 4th gen and iPhone 4) and only in Release mode.