mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
leak detection improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37003 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
edc02cf9e5
commit
1483924463
102 changed files with 429 additions and 235 deletions
|
@ -35,7 +35,6 @@
|
|||
#import "Foundation/NSURLHandle.h"
|
||||
#import "Foundation/NSRunLoop.h"
|
||||
#import "Foundation/NSFileManager.h"
|
||||
#import "GNUstepBase/NSObject+GNUstepBase.h"
|
||||
|
||||
|
||||
@class GSFTPURLHandle;
|
||||
|
@ -177,7 +176,9 @@ static Class NSURLHandleClass = 0;
|
|||
{
|
||||
NSURLHandleClass = self;
|
||||
registry = [NSMutableArray new];
|
||||
[[NSObject leakAt: ®istry] release];
|
||||
registryLock = [NSLock new];
|
||||
[[NSObject leakAt: ®istryLock] release];
|
||||
[self registerURLHandleClass: [GSFileURLHandle class]];
|
||||
[self registerURLHandleClass: [GSFTPURLHandle class]];
|
||||
[self registerURLHandleClass: [GSHTTPURLHandle class]];
|
||||
|
@ -675,7 +676,9 @@ static NSLock *fileLock = nil;
|
|||
+ (void) initialize
|
||||
{
|
||||
fileCache = [NSMutableDictionary new];
|
||||
[[NSObject leakAt: &fileCache] release];
|
||||
fileLock = [NSLock new];
|
||||
[[NSObject leakAt: &fileLock] release];
|
||||
}
|
||||
|
||||
- (NSData*) availableResourceData
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue