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:
Richard Frith-MacDonald 2013-08-22 15:44:54 +00:00
parent 8ea74f67d7
commit ed09c55959
102 changed files with 429 additions and 235 deletions

View file

@ -53,7 +53,7 @@
// #undef HAVE_LIBXML_SAX2_H
#import "GNUstepBase/GSObjCRuntime.h"
#import "GNUstepBase/NSObject+GNUstepBase.h"
#import "GNUstepBase/GSMime.h"
#import "GNUstepBase/GSXML.h"
#import "Foundation/NSArray.h"
@ -232,6 +232,7 @@ static NSMapTable *attrNames = 0;
setupCache();
attrNames = NSCreateMapTable(NSIntegerMapKeyCallBacks,
NSNonRetainedObjectMapValueCallBacks, 0);
[[NSObject leakAt: &attrNames] release];
NSMapInsert(attrNames,
(void*)XML_ATTRIBUTE_CDATA, (void*)@"XML_ATTRIBUTE_CDATA");
NSMapInsert(attrNames,
@ -598,6 +599,7 @@ static NSMapTable *nsNames = 0;
setupCache();
nsNames = NSCreateMapTable(NSIntegerMapKeyCallBacks,
NSNonRetainedObjectMapValueCallBacks, 0);
[[NSObject leakAt: &nsNames] release];
NSMapInsert(nsNames,
(void*)XML_LOCAL_NAMESPACE, (void*)@"XML_LOCAL_NAMESPACE");
}
@ -776,6 +778,7 @@ static NSMapTable *nodeNames = 0;
setupCache();
nodeNames = NSCreateMapTable(NSIntegerMapKeyCallBacks,
NSNonRetainedObjectMapValueCallBacks, 0);
[[NSObject leakAt: &nodeNames] release];
NSMapInsert(nodeNames,
(void*)XML_ELEMENT_NODE, (void*)@"XML_ELEMENT_NODE");
NSMapInsert(nodeNames,