aboutsummaryrefslogtreecommitdiff
path: root/iPhone/GTMABAddressBook.m
diff options
context:
space:
mode:
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
}