Fix memleaks

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-01-12 15:22:28 +01:00
parent 4aef1e400b
commit 50cf044b46
2 changed files with 6 additions and 2 deletions

View file

@ -196,10 +196,14 @@
} else {
phoneNumber = [[NSString alloc] initWithCString:linphone_address_as_string_uri_only(partyToCall) encoding:[NSString defaultCStringEncoding]];
}
NSString* dispName = [[NSString alloc] initWithCString:displayName encoding:[NSString defaultCStringEncoding]];
[[LinphoneManager instance].callDelegate displayDialerFromUI:self
forUser:phoneNumber
withDisplayName:[[[NSString alloc] initWithCString:displayName encoding:[NSString defaultCStringEncoding]] autorelease]];
withDisplayName:dispName];
[phoneNumber release];
[dispName release];
}

View file

@ -204,7 +204,7 @@
[[UIApplication sharedApplication] presentLocalNotificationNow:notif];
}
} else {
CallDelegate* cd = [[CallDelegate alloc] init];
CallDelegate* cd = [[[CallDelegate alloc] init] autorelease];
cd.delegate = self;
cd.call = call;