aboutsummaryrefslogtreecommitdiff
path: root/iPhone/GTMABAddressBook.m
diff options
context:
space:
mode:
authorGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-09-22 23:33:44 +0000
committerGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2008-09-22 23:33:44 +0000
commit7bb8e9b9b24141f373ed70d7e6674a245c0227cf (patch)
tree8fab3cad46943aee24f213e041b2a7f6b71ea5df /iPhone/GTMABAddressBook.m
parentbfaf8705cccb15c0c2a7704b17ba011ddba8242f (diff)
- Added GTMTestTimer.h for doing high fidelity timings.
- Added leaks checking to iPhone unit test script. It can be controlled by the GTM_DISABLE_LEAKS environment variable - Added ability to control using zombies to iPhone unit test script. It can be controlled by the GTM_DISABLE_ZOMBIES environment variable - Added ability to control termination to iPhone unit test script. It can be controlled by the GTM_DISABLE_TERMINATION environment variable - Fixed several leaks found with leak checking enabled. - Added configs for different iPhone OS versions.
Diffstat (limited to 'iPhone/GTMABAddressBook.m')
-rw-r--r--iPhone/GTMABAddressBook.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/iPhone/GTMABAddressBook.m b/iPhone/GTMABAddressBook.m
index 0c54364..c06b511 100644
--- a/iPhone/GTMABAddressBook.m
+++ b/iPhone/GTMABAddressBook.m
@@ -189,6 +189,7 @@ typedef struct {
- (id)initWithRecord:(ABRecordRef)record {
if ((self = [super init])) {
if ([self class] == [GTMABRecord class]) {
+ [self autorelease];
[self doesNotRecognizeSelector:_cmd];
}
if (!record) {
@@ -509,6 +510,8 @@ typedef struct {
@implementation GTMABMultiValue
- (id)init {
+ // Call super init and release so we don't leak
+ [[super init] autorelease];
[self doesNotRecognizeSelector:_cmd];
return nil; // COV_NF_LINE
}