Loading...
--- xnu/xnu-792.6.56/libkern/c++/OSString.cpp
+++ xnu/xnu-344.49/libkern/c++/OSString.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
@@ -99,7 +101,7 @@
OSString *me = new OSString;
if (me && !me->initWithString(aString)) {
- me->release();
+ me->free();
return 0;
}
@@ -111,7 +113,7 @@
OSString *me = new OSString;
if (me && !me->initWithCString(cString)) {
- me->release();
+ me->free();
return 0;
}
@@ -123,7 +125,7 @@
OSString *me = new OSString;
if (me && !me->initWithCStringNoCopy(cString)) {
- me->release();
+ me->free();
return 0;
}