diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 08ab9de54..eaaa51ece 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -119,7 +119,8 @@ int __aeabi_idiv(int a, int b) { #endif #ifdef HAVE_G729 @"YES",@"g729_preference", // enable amr by default if compiled with -#endif @"NO",@"debugenable_preference", +#endif + @"NO",@"debugenable_preference", //@"+33",@"countrycode_preference", nil]; @@ -181,16 +182,6 @@ int __aeabi_idiv(int a, int b) { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeSound]; - UIDevice* device = [UIDevice currentDevice]; - BOOL backgroundSupported = false; - if ([device respondsToSelector:@selector(isMultitaskingSupported)]){ - backgroundSupported = device.multitaskingSupported; - } - if(backgroundSupported){ - [[LinphoneManager instance] kickOffBackgroundTCPConnection]; - NSLog(@"We are using my method"); - } - CTCallCenter* ct = [[CTCallCenter alloc] init]; ct.callEventHandler = ^(CTCall* call) { @synchronized([LinphoneManager instance]) { diff --git a/Classes/LinphoneUI/LinphoneManager.m b/Classes/LinphoneUI/LinphoneManager.m index 295aa96c0..c4d073c6a 100644 --- a/Classes/LinphoneUI/LinphoneManager.m +++ b/Classes/LinphoneUI/LinphoneManager.m @@ -362,6 +362,7 @@ static void linphone_iphone_call_state(LinphoneCore *lc, LinphoneCall* call, Lin cancelButtonTitle:NSLocalizedString(@"Continue",nil) otherButtonTitles:nil ,nil]; [error show]; + [error release]; } } diff --git a/Classes/LinphoneUI/UICallButton.m b/Classes/LinphoneUI/UICallButton.m index 8ab033b6d..9b1fbf68d 100644 --- a/Classes/LinphoneUI/UICallButton.m +++ b/Classes/LinphoneUI/UICallButton.m @@ -45,8 +45,10 @@ otherButtonTitles:nil]; [error show]; [error release]; + [ct release]; return; } + [ct release]; if (TRUE /*!linphone_core_in_call([LinphoneManager getLc])*/) { LinphoneProxyConfig* proxyCfg;