diff --git a/Source/NSGCString.m b/Source/NSGCString.m index e7ff46653..fdbac1dcc 100644 --- a/Source/NSGCString.m +++ b/Source/NSGCString.m @@ -45,6 +45,11 @@ return NSAllocateObject (self, 0, z); } ++ alloc +{ + return NSAllocateObject (self, 0, NSDefaultMallocZone()); +} + - (void)dealloc { if (_zone) { @@ -489,6 +494,11 @@ return NSAllocateObject (self, 0, z); } ++ alloc +{ + return NSAllocateObject (self, 0, NSDefaultMallocZone()); +} + + (void) initialize { static int done = 0; diff --git a/Source/NSGString.m b/Source/NSGString.m index c4d0522fe..4687d0870 100644 --- a/Source/NSGString.m +++ b/Source/NSGString.m @@ -53,6 +53,11 @@ return NSAllocateObject (self, 0, z); } ++ alloc +{ + return NSAllocateObject (self, 0, NSDefaultMallocZone()); +} + - (void)dealloc { if (_zone) @@ -329,6 +334,11 @@ return NSAllocateObject (self, 0, z); } ++ alloc +{ + return NSAllocateObject (self, 0, NSDefaultMallocZone()); +} + + (void) initialize { static int done = 0;