Removed / corrected code spotted by static analysis

This commit is contained in:
Guillaume BIENKOWSKI 2014-07-10 13:31:50 +02:00
parent 2f79d21588
commit e6045a2c60
6 changed files with 6 additions and 13 deletions

View file

@ -47,6 +47,7 @@
// chatRoom = NULL;
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self reloadData];
}

View file

@ -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)
}

View file

@ -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);

View file

@ -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

View file

@ -140,6 +140,8 @@ static UIFont *CELL_FONT = nil;
[messageImageView stopLoading];
[image release];
});
} else {
[image release];
}
});
} failureBlock:^(NSError *error) {

View file

@ -105,6 +105,7 @@
}
- (void)viewDidUnload {
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
self.tableView = nil;