From c910ca09d31da159b09967fc0b35f0d823a78ed2 Mon Sep 17 00:00:00 2001 From: LvBingru Date: Wed, 4 May 2016 10:31:02 +0800 Subject: [PATCH] alloc change --- ios/RCTHotUpdate/RCTHotUpdate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RCTHotUpdate/RCTHotUpdate.m b/ios/RCTHotUpdate/RCTHotUpdate.m index 1a9afa6..2fc1ea4 100644 --- a/ios/RCTHotUpdate/RCTHotUpdate.m +++ b/ios/RCTHotUpdate/RCTHotUpdate.m @@ -132,7 +132,7 @@ RCT_EXPORT_MODULE(RCTHotUpdate); { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - NSMutableDictionary *ret = [@{} mutableCopy]; + NSMutableDictionary *ret = [NSMutableDictionary new]; ret[@"downloadRootDir"] = [RCTHotUpdate downloadDir]; ret[@"packageVersion"] = [RCTHotUpdate packageVersion]; ret[@"isRolledBack"] = [defaults objectForKey:keyRolledBackMarked];