NS_IF_RELEASE(appData.appDir);
NS_IF_RELEASE(appData.directory);
int main(int argc, char* argv[]){  if (argc == 1 || IsArg(argv[1], "h")                || IsArg(argv[1], "help")                || IsArg(argv[1], "?"))  {    // display additional information (XXX make localizable?)    Output(PR_FALSE,           "Mozilla XULRunner " MOZILLA_VERSION " %d\n\n"           "Usage: " XULRUNNER_PROGNAME            " [OPTIONS] [APP-FILE [APP-OPTIONS...]]\n"           "\n"           "OPTIONS\n"           "      --app        specify APP-FILE (optional)\n"           "  -h, --help       show this message\n"           "  -v, --version    show version\n"           "\n"           "APP-FILE\n"           "  Application initialization file.\n"           "\n"           "APP-OPTIONS\n"           "  Application specific options.\n",           BUILD_ID);    return 0;  }  if (argc == 2 && (IsArg(argv[1], "v") || IsArg(argv[1], "version")))  {    Output(PR_FALSE, "Mozilla XULRunner " MOZILLA_VERSION " %d\n",           BUILD_ID);    return 0;  }  geckoVersion = ParseVersion(GRE_BUILD_ID);  const char *appDataFile;  if (IsArg(argv[1], "app"))  {    if (argc == 2)    {      Output(PR_TRUE, "Error: APP-FILE must be specified!\n");      return 1;    }    appDataFile = argv[2];    argv += 2;    argc -= 2;  }  else  {    appDataFile = argv[1];    argv += 1;    argc -= 1;  }  nsXREAppData appData = { sizeof(nsXREAppData), 0 };  int rv = LoadAppData(appDataFile, &appData);  if (!rv)    rv = XRE_main(argc, argv, appData);  NS_IF_RELEASE(appData.appDir);  return rv;}