if (mRequests != nsnull) { int i, count = mRequests->Count(); for (i=0; i < count; i++) { ImageConsumer *ic = (ImageConsumer *)mRequests->ElementAt(i);  NS_RELEASE(ic); } delete mRequests; }
delete mRequests;
ImageNetContextImpl::~ImageNetContextImpl(){  if (mRequests != nsnull) {    int i, count = mRequests->Count();    for (i=0; i < count; i++) {      ImageConsumer *ic = (ImageConsumer *)mRequests->ElementAt(i);                NS_RELEASE(ic);    }    delete mRequests;  }}