Loading...
libkern/c++/OSCollectionIterator.cpp xnu-792.6.56 xnu-344.49
--- xnu/xnu-792.6.56/libkern/c++/OSCollectionIterator.cpp
+++ xnu/xnu-344.49/libkern/c++/OSCollectionIterator.cpp
@@ -2,6 +2,8 @@
  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
+ * 
+ * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
  * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
@@ -61,7 +63,7 @@
     OSCollectionIterator *me = new OSCollectionIterator;
 
     if (me && !me->initWithCollection(inColl)) {
-        me->release();
+        me->free();
         return 0;
     }