Don't call c++ constructors when allocating a class with class_createInstance() - this function calls them itself, and calling them twice is a bad idea.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33436 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-07-03 11:04:04 +00:00
parent 05ccee0090
commit 38566d1888

View file

@ -796,7 +796,6 @@ NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone)
cxx_construct = sel_registerName(".cxx_construct");
cxx_destruct = sel_registerName(".cxx_destruct");
}
callCXXConstructors(aClass, new);
return new;
}
inline id