git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32860 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-04-14 12:31:51 +00:00
parent 53f31c7340
commit 3ed3b692e3

View file

@ -673,7 +673,7 @@ NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone)
* -finalize method or has C++ destructors. * -finalize method or has C++ destructors.
*/ */
if (GSIsFinalizable(aClass) if (GSIsFinalizable(aClass)
|| class_respondsToSelector(destructorClass, cxx_destruct)) || class_respondsToSelector(aClass, cxx_destruct))
{ {
/* We only do allocation counting for objects that can be /* We only do allocation counting for objects that can be
* finalised - for other objects we have no way of decrementing * finalised - for other objects we have no way of decrementing