Skip to content

Commit

Permalink
Set NSFileManager delegate back to nil once copying is done.
Browse files Browse the repository at this point in the history
Otherwise the next operation by NSFileManager will try to use the deallocated instance and crash.
  • Loading branch information
hjuutilainen committed Aug 10, 2018
1 parent 69d1169 commit 08f8a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MunkiAdmin/NSOperation Subclasses/MAFileCopyOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ -(void)main {
} else {
DDLogError(@"%@: Copy failed with error: %@", filename, [copyError description]);
}

[fm setDelegate:nil];
}
}
@catch(...) {
Expand Down

0 comments on commit 08f8a0c

Please sign in to comment.