mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Minor tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8152 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6308c846f5
commit
1c75601495
1 changed files with 3 additions and 7 deletions
|
@ -56,7 +56,6 @@ char emp[64] = {
|
||||||
NSMutableData *dat;
|
NSMutableData *dat;
|
||||||
GSMimeParser *parser;
|
GSMimeParser *parser;
|
||||||
GSMimeDocument *document;
|
GSMimeDocument *document;
|
||||||
NSMutableDictionary *headers;
|
|
||||||
NSMutableDictionary *pageInfo;
|
NSMutableDictionary *pageInfo;
|
||||||
NSMutableDictionary *wProperties;
|
NSMutableDictionary *wProperties;
|
||||||
NSData *wData;
|
NSData *wData;
|
||||||
|
@ -112,7 +111,6 @@ static NSLock *urlLock = nil;
|
||||||
RELEASE(dat);
|
RELEASE(dat);
|
||||||
RELEASE(parser);
|
RELEASE(parser);
|
||||||
RELEASE(document);
|
RELEASE(document);
|
||||||
RELEASE(headers);
|
|
||||||
RELEASE(pageInfo);
|
RELEASE(pageInfo);
|
||||||
RELEASE(wData);
|
RELEASE(wData);
|
||||||
RELEASE(wProperties);
|
RELEASE(wProperties);
|
||||||
|
@ -126,7 +124,6 @@ static NSLock *urlLock = nil;
|
||||||
if ((self = [super initWithURL: newUrl cached: cached]) != nil)
|
if ((self = [super initWithURL: newUrl cached: cached]) != nil)
|
||||||
{
|
{
|
||||||
dat = [NSMutableData new];
|
dat = [NSMutableData new];
|
||||||
headers = [NSMutableDictionary new];
|
|
||||||
pageInfo = [NSMutableDictionary new];
|
pageInfo = [NSMutableDictionary new];
|
||||||
wProperties = [NSMutableDictionary new];
|
wProperties = [NSMutableDictionary new];
|
||||||
request = [NSMutableDictionary new];
|
request = [NSMutableDictionary new];
|
||||||
|
@ -251,8 +248,7 @@ static NSLock *urlLock = nil;
|
||||||
if (connectionState != idle)
|
if (connectionState != idle)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RELEASE(dat);
|
[dat setLength: 0];
|
||||||
dat = [NSMutableData new];
|
|
||||||
RELEASE(document);
|
RELEASE(document);
|
||||||
RELEASE(parser);
|
RELEASE(parser);
|
||||||
parser = [GSMimeParser new];
|
parser = [GSMimeParser new];
|
||||||
|
@ -504,7 +500,7 @@ static NSLock *urlLock = nil;
|
||||||
*/
|
*/
|
||||||
if (wData != nil)
|
if (wData != nil)
|
||||||
{
|
{
|
||||||
[buf appendBytes: [wData bytes] length: [wData length]];
|
[buf appendData: wData];
|
||||||
DESTROY(wData);
|
DESTROY(wData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -640,7 +636,7 @@ static NSLock *urlLock = nil;
|
||||||
{
|
{
|
||||||
NSMutableData *d = [wData mutableCopy];
|
NSMutableData *d = [wData mutableCopy];
|
||||||
|
|
||||||
[d appendBytes: [p bytes] length: [p length]];
|
[d appendData: p];
|
||||||
ASSIGNCOPY(wData, d);
|
ASSIGNCOPY(wData, d);
|
||||||
RELEASE(d);
|
RELEASE(d);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue