1

I have the following piece of code

 if([news.new_image isEqualToString:@""]){
        cell.imgNews.image = [UIImage imageNamed:@"placeholder.png"];
    }else{
        NSString *url = [NSString stringWithFormat:@"http://genkonstage.genk.be/files/news/s_%@",news.new_image];
        [cell.imgNews setImageWithURL:[NSURL URLWithString:url]
                     placeholderImage:[UIImage imageNamed:@"placeholder.png"]];

    }

But every time I run it. I get the following error on the NSString *url line

genkonstage(56799,0x357f1a8) malloc: *** error for object 0xc4d1660: double free
*** set a breakpoint in malloc_error_break to debug

Could somebody please help me with this ?

* I have enabled ARC in the project.

Thanks !

Steaphann
  • 2,797
  • 6
  • 50
  • 109

0 Answers0