mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fix yet another leak
This commit is contained in:
parent
87be17f41b
commit
48f01b610d
1 changed files with 4 additions and 8 deletions
|
@ -139,9 +139,8 @@ errorForCURLcode(CURL *handle, CURLcode code, char errorBuffer[CURL_ERROR_SIZE])
|
|||
return NULL;
|
||||
}
|
||||
|
||||
errorString = [[NSString alloc] initWithCString: errorBuffer];
|
||||
curlErrorString =
|
||||
[[NSString alloc] initWithCString: curl_easy_strerror(code)];
|
||||
errorString = [NSString stringWithCString: errorBuffer];
|
||||
curlErrorString = [NSString stringWithCString: curl_easy_strerror(code)];
|
||||
|
||||
/* Get errno number from the last connect failure.
|
||||
*
|
||||
|
@ -267,9 +266,6 @@ errorForCURLcode(CURL *handle, CURLcode code, char errorBuffer[CURL_ERROR_SIZE])
|
|||
code: urlError
|
||||
userInfo: userInfo];
|
||||
|
||||
[curlErrorString release];
|
||||
[errorString release];
|
||||
|
||||
return error;
|
||||
} /* errorForCURLcode */
|
||||
|
||||
|
@ -1344,8 +1340,8 @@ write_callback(char *ptr, size_t size, size_t nmemb, void *userdata)
|
|||
|
||||
if (_properties & GSURLSessionUpdatesDelegate)
|
||||
{
|
||||
if (_properties & GSURLSessionWritesDataToFile &&
|
||||
[_delegate respondsToSelector: didFinishDownloadingToURLSel])
|
||||
if (_properties & GSURLSessionWritesDataToFile
|
||||
&& [_delegate respondsToSelector: didFinishDownloadingToURLSel])
|
||||
{
|
||||
NSURL *url = [_taskData objectForKey: taskTemporaryFileLocationKey];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue