if(ic->type != NULL) nsCRT::free(ic->type);
IL_StreamCreated(il_container *ic,                 ilIURL *url,                 char* type){    PR_ASSERT(ic);    /*     * It could be that layout aborted image loading by calling IL_FreeImage()     * before the netlib finished transferring data.  Don't do anything.     */    if (ic->state == IC_ABORT_PENDING)        return PR_FALSE;        ic->type = nsCRT::strdup(type); //mime string    ic->content_length = url->GetContentLength();    char* addr = url->GetAddress();    ILTRACE(4,("il: new stream, type %s, %s", ic->type, addr));    nsCRT::free(addr);    ic->state = IC_STREAM;#ifndef M12N                    /* XXXM12N Fix me. */#ifdef XP_MAC    ic->image->hasUniqueColormap = PR_FALSE;#endif#endif /* M12N */    return PR_TRUE;}