nsISupports *inst = 0;
mozJSComponentLoader *inst;
CreateJSComponentLoader(nsISupports *aOuter, const nsIID &iid, void **result){    if (!result)        return NS_ERROR_NULL_POINTER;    *result = 0;    nsISupports *inst = 0;    if (iid.Equals(NS_GET_IID(nsIComponentLoader))) {        inst = (nsISupports *)new mozJSComponentLoader();    } else {        return NS_ERROR_NO_INTERFACE;    }    if (!inst)        return NS_ERROR_OUT_OF_MEMORY;        nsresult rv = inst->QueryInterface(iid, result);    if (NS_FAILED(rv)) {        delete inst;    }    return rv;}