内存泄漏错误

时间:2011-04-28 08:24:36

标签: iphone

我已经初始化了像这样的对象

PixelInfo *ob=[[PixelInfo alloc]initWithName:clr :t];
在for循环中

并将其释放到for循环内,就像这样。

[faceColor addObject:ob];
[ob release];

但经过近120次迭代后,我正在输出这样的错误:

malloc: *** error for object 0x5030400: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

帮我解决这个问题..

0 个答案:

没有答案