mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
NSURLSession: fix memory management in GSTransferState
This commit is contained in:
parent
7e7cac89aa
commit
72b1233c2a
1 changed files with 2 additions and 2 deletions
|
@ -292,7 +292,7 @@
|
|||
fileName = [[randomUUID UUIDString] stringByAppendingPathExtension: @"tmp"];
|
||||
tempURL = [NSURL fileURLWithPath: NSTemporaryDirectory()];
|
||||
|
||||
_fileURL = [NSURL fileURLWithPath: fileName relativeToURL: tempURL];
|
||||
_fileURL = RETAIN([NSURL fileURLWithPath: fileName relativeToURL: tempURL]);
|
||||
}
|
||||
|
||||
return _fileURL;
|
||||
|
@ -308,7 +308,7 @@
|
|||
contents: nil
|
||||
attributes: nil];
|
||||
|
||||
_fileHandle = [NSFileHandle fileHandleForWritingToURL: [self fileURL] error: NULL];
|
||||
_fileHandle = RETAIN([NSFileHandle fileHandleForWritingToURL: [self fileURL] error: NULL]);
|
||||
}
|
||||
|
||||
return _fileHandle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue