Override NSObject +zone to ensure that -zone returns a valid zone

pointer when it is called on a class object.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33498 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2011-07-10 14:48:26 +00:00
parent 6bf1350874
commit f9f1f879f4
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-07-10 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSObject.m (+zone): Override to ensure that -zone returns
a valid zone pointer when it is called on a class object.
2011-07-05 Fred Kiefer <FredKiefer@gmx.de>
* macosx/gnustep.pbproj/project.pbxproj,

View file

@ -2164,6 +2164,13 @@ static id gs_weak_load(id obj)
#endif
}
#if !GS_WITH_GC && !__OBJC_GC__
+ (NSZone *) zone
{
return NSDefaultMallocZone();
}
#endif
/**
* Called to encode the instance variables of the receiver to aCoder.<br />
* Subclasses should call the superclass method at the start of their