iterator must be released
the element got from IOIteratorNext must be released
ex:
ele= IOIteratorNext(iter)
while(ele != IO_OBJECT_NULL){
IOObjectRelease(ele);
ele = IOIteratorNext(iter);
}
IOObjectRelease(iter);
張貼留言
沒有留言:
張貼留言