We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09fe8a9 commit 8a83ddfCopy full SHA for 8a83ddf
1 file changed
Plugins/iOS/CloudKit/Native/CloudKit.mm
@@ -5,10 +5,10 @@
5
6
CKRecord* InitCKRecord(const char* recordType){
7
CKRecord* record = [[CKRecord alloc] initWithRecordType:[NSString stringWithUTF8String:recordType]];
8
- return [record retain]; // 防止指针被回收
+ return record; // 防止指针被回收
9
}
10
11
void ReleaseCKRecord(CKRecord* handle){
12
- delete handle;
+
13
14
0 commit comments