make code more robust when there's no autorelease pool.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35706 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2012-10-17 13:47:11 +00:00
parent 2f1b8f47c3
commit e02ff90f23
8 changed files with 88 additions and 73 deletions

View file

@ -1130,6 +1130,7 @@ typedef struct {
{
if (self == [NSMessagePort class])
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
NSFileManager *mgr;
NSString *path;
NSString *pref;
@ -1180,6 +1181,7 @@ typedef struct {
}
}
}
[pool release];
}
}