Skip to content

Commit e78ef1c

Browse files
committed
Merge pull request #104 from ParsePlatform/nlutsenko.object
Fixed too agressive deallocation for PFObject when fetch/delete is in progress.
2 parents 84a5d12 + 47c554c commit e78ef1c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Parse/PFObject.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,11 +1561,9 @@ - (BFTask *)saveAsync:(BFTask *)toAwait {
15611561

15621562
- (BFTask *)fetchAsync:(BFTask *)toAwait {
15631563
PFCurrentUserController *controller = [[self class] currentUserController];
1564-
@weakify(self);
15651564
return [[controller getCurrentUserSessionTokenAsync] continueWithBlock:^id(BFTask *task) {
15661565
NSString *sessionToken = task.result;
15671566
return [toAwait continueAsyncWithBlock:^id(BFTask *task) {
1568-
@strongify(self);
15691567
return [[[self class] objectController] fetchObjectAsync:self withSessionToken:sessionToken];
15701568
}];
15711569
}];
@@ -1575,11 +1573,9 @@ - (BFTask *)deleteAsync:(BFTask *)toAwait {
15751573
[self checkDeleteParams];
15761574

15771575
PFCurrentUserController *controller = [[self class] currentUserController];
1578-
@weakify(self);
15791576
return [[controller getCurrentUserSessionTokenAsync] continueWithBlock:^id(BFTask *task) {
15801577
NSString *sessionToken = task.result;
15811578
return [toAwait continueAsyncWithBlock:^id(BFTask *task) {
1582-
@strongify(self);
15831579
return [[[self class] objectController] deleteObjectAsync:self withSessionToken:sessionToken];
15841580
}];
15851581
}];

0 commit comments

Comments
 (0)