diff options
Diffstat (limited to 'embed/mozilla/EphyHeaderSniffer.cpp')
-rw-r--r-- | embed/mozilla/EphyHeaderSniffer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp index 8d8e2d0b3..abf0ba931 100644 --- a/embed/mozilla/EphyHeaderSniffer.cpp +++ b/embed/mozilla/EphyHeaderSniffer.cpp @@ -328,8 +328,9 @@ nsresult EphyHeaderSniffer::PerformSave (nsIURI* inOriginalURI) } /* FIXME: how to inform user of failed save ? */ - nsILocalFile *destFile; - BuildDownloadPath (NS_ConvertUCS2toUTF8 (defaultFileName).get(), &destFile); + nsCOMPtr<nsILocalFile> destFile; + BuildDownloadPath (NS_ConvertUCS2toUTF8 (defaultFileName).get(), getter_AddRefs (destFile)); + NS_ENSURE_TRUE (destFile, NS_ERROR_FAILURE); return InitiateDownload (destFile); } |