mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
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:
parent
3d2999fc40
commit
3d7865c21b
2 changed files with 12 additions and 0 deletions
|
@ -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>
|
2011-07-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* macosx/gnustep.pbproj/project.pbxproj,
|
* macosx/gnustep.pbproj/project.pbxproj,
|
||||||
|
|
|
@ -2164,6 +2164,13 @@ static id gs_weak_load(id obj)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !GS_WITH_GC && !__OBJC_GC__
|
||||||
|
+ (NSZone *) zone
|
||||||
|
{
|
||||||
|
return NSDefaultMallocZone();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called to encode the instance variables of the receiver to aCoder.<br />
|
* Called to encode the instance variables of the receiver to aCoder.<br />
|
||||||
* Subclasses should call the superclass method at the start of their
|
* Subclasses should call the superclass method at the start of their
|
||||||
|
|
Loading…
Reference in a new issue