mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Removed / corrected code spotted by static analysis
This commit is contained in:
parent
2f79d21588
commit
e6045a2c60
6 changed files with 6 additions and 13 deletions
|
|
@ -47,6 +47,7 @@
|
|||
// chatRoom = NULL;
|
||||
}
|
||||
- (void)viewWillAppear:(BOOL)animated {
|
||||
[super viewWillAppear:animated];
|
||||
[self reloadData];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -240,10 +240,10 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
|
||||
[super willAnimateRotationToInterfaceOrientation:toInterfaceOrientation duration:duration];
|
||||
|
||||
}
|
||||
|
||||
-(void)didReceiveMemoryWarning {
|
||||
[super didReceiveMemoryWarning];
|
||||
[TUNinePatchCache flushCache]; // will remove any images cache (freeing any cached but unused images)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -385,18 +385,6 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
if(lAddress == NULL)
|
||||
return;
|
||||
|
||||
NSString *displayName = nil;
|
||||
if(contact != nil) {
|
||||
displayName = [FastAddressBook getContactDisplayName:contact];
|
||||
} else {
|
||||
const char* lDisplayName = linphone_address_get_display_name(addr);
|
||||
const char* lUserName = linphone_address_get_username(addr);
|
||||
if (lDisplayName)
|
||||
displayName = [NSString stringWithUTF8String:lDisplayName];
|
||||
else if(lUserName)
|
||||
displayName = [NSString stringWithUTF8String:lUserName];
|
||||
}
|
||||
|
||||
// Go to ChatRoom view
|
||||
[[PhoneMainView instance] changeCurrentView:[ChatViewController compositeViewDescription]];
|
||||
ChatRoomViewController *controller = DYNAMIC_CAST([[PhoneMainView instance] changeCurrentView:[ChatRoomViewController compositeViewDescription] push:TRUE], ChatRoomViewController);
|
||||
|
|
|
|||
|
|
@ -1890,6 +1890,7 @@ static void audioRouteChangeListenerCallback (
|
|||
NSData* data = [NSJSONSerialization dataWithJSONObject:appDataDict options:0 error:nil];
|
||||
NSString* appdataJSON = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
|
||||
linphone_chat_message_set_appdata(msg, [appdataJSON UTF8String] );
|
||||
[appdataJSON release];
|
||||
}
|
||||
|
||||
#pragma mark - LPConfig Functions
|
||||
|
|
|
|||
|
|
@ -140,6 +140,8 @@ static UIFont *CELL_FONT = nil;
|
|||
[messageImageView stopLoading];
|
||||
[image release];
|
||||
});
|
||||
} else {
|
||||
[image release];
|
||||
}
|
||||
});
|
||||
} failureBlock:^(NSError *error) {
|
||||
|
|
|
|||
|
|
@ -105,6 +105,7 @@
|
|||
}
|
||||
|
||||
- (void)viewDidUnload {
|
||||
[super viewDidUnload];
|
||||
// Release any retained subviews of the main view.
|
||||
// e.g. self.myOutlet = nil;
|
||||
self.tableView = nil;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue