Bug 18067 file extensions on save

    if (tmpFile->Open())
    {
      return tmpFile;
    }
    else
    {
      delete tmpFile;
      return NULL;
    }