delete [] url;
MsgAppCoreOpenURL(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval){  nsIDOMMsgAppCore *nativeThis = (nsIDOMMsgAppCore*)JS_GetPrivate(cx, obj);  JSBool rBool = JS_FALSE;  nsAutoString b0;  *rval = JSVAL_NULL;  // If there's no private data, this must be the prototype, so ignore  if (nsnull == nativeThis) {    return JS_TRUE;  }  if (argc >= 1) {    nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]);    if (NS_OK != nativeThis->OpenURL(b0)) {      return JS_FALSE;    }    *rval = JSVAL_VOID;  }  else {    JS_ReportError(cx, "Function OpenURL requires 1 parameters");    return JS_FALSE;  }  return JS_TRUE;}