forked from mirrors/linphone-iphone
Fix memleaks
This commit is contained in:
parent
4aef1e400b
commit
50cf044b46
2 changed files with 6 additions and 2 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue