mOutputStream->Close();
nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstanceOwner* owner) :  mTarget(PL_strdup(target)),  mOwner(owner){  NS_INIT_REFCNT();  nsresult rv;  nsCOMPtr<nsIFile> pluginTmp;  rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(pluginTmp));  if (NS_FAILED(rv)) return;  mTempFile = do_QueryInterface(pluginTmp, &rv);  if (NS_FAILED(rv)) return;      // need to create a file with a unique name - use target as the basis  rv = mTempFile->AppendNative(nsDependentCString(target));  if (NS_FAILED(rv)) return;      // Yes, make it unique.  rv = mTempFile->CreateUnique(nsIFile::NORMAL_FILE_TYPE, 0700);   if (NS_FAILED(rv)) return;  // create the file  rv = NS_NewLocalFileOutputStream(getter_AddRefs(mOutputStream), mTempFile, -1, 00600);  if (NS_FAILED(rv))    return;	  //mOutputStream->Close();  // construct the URL we'll use later in calls to GetURL()  NS_GetURLSpecFromFile(mTempFile, mFileURL);#ifdef NS_DEBUG  printf("File URL = %s\n", mFileURL.get());#endif}