友達、
計測器でコードを実行すると、5行でメモリリークが表示されます(次のコードから)つまり cell = [[[NSBundle mainBundle] loadNibNamed:@"ZoomCustomVideoCell" owner:self options:nil] objectAtIndex:0];
そこにメモリリークが表示される理由と、その解決策は何なのかわかりません
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"ZoomCustomVideoCell";
ZoomCustomVideoCell *cell = (ZoomCustomVideoCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[NSBundle mainBundle] loadNibNamed:@"ZoomCustomVideoCell" owner:self options:nil] objectAtIndex:0];
cell.m_zoomMsg = [[[ZoomMessage alloc] init] autorelease];
[[cell m_zoomMsg] initWithJSON:[m_tmpVideoList objectAtIndex: indexPath.row]];
[[cell videoLabel] setText:[cell.m_zoomMsg _from]];
[[cell m_labelLocation] setText:[NSString stringWithFormat:@"%@", cell.m_zoomMsg._location]];
[[cell videoLabelB] setText:[cell.m_zoomMsg _uploadDesc]];
NSLog(@"UserName: %@", [[cell videoLabel] text]);
[cell refreshImage];
}
return cell;
}