minor fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36839 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-07-05 20:31:54 +00:00
parent acaa598aa0
commit 5f8d366814
5 changed files with 34 additions and 20 deletions

View file

@ -761,11 +761,16 @@ GSAllocateObject (Class aClass, NSUInteger extraBytes, NSZone *zone);
inline id
NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone)
{
id new;
if (!objc_collecting_enabled())
{
GSAllocateObject(aClass, extraBytes, zone);
new = GSAllocateObject(aClass, extraBytes, zone);
}
else
{
new = class_createInstance(aClass, extraBytes);
}
id new = class_createInstance(aClass, extraBytes);
if (0 == cxx_construct)
{
cxx_construct = sel_registerName(".cxx_construct");