Fix bustage on Solaris from bug 193001.
authorreed@reedloden.com
Wed, 16 Jan 2008 23:10:23 -0800
changeset 10356 f1a194fe303947d11164d7b3465b56a98da70241
parent 10355 9380baa16de2d059aee48af75481e74635d5fc9f
child 10357 899accd1bd36731a99a41dd488e24d4e3a757a10
push idunknown
push userunknown
push dateunknown
bugs193001
milestone1.9b3pre
Fix bustage on Solaris from bug 193001.
widget/src/gtk2/nsDeviceContextSpecG.cpp
--- a/widget/src/gtk2/nsDeviceContextSpecG.cpp
+++ b/widget/src/gtk2/nsDeviceContextSpecG.cpp
@@ -670,17 +670,17 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::Be
 }
 
 NS_IMETHODIMP nsDeviceContextSpecGTK::EndDocument()
 {
   if (mToPrinter) {
     if (!gtk_print_job_set_source_file(mPrintJob, mSpoolName.get(), NULL))
       return NS_ERROR_GFX_PRINTER_COULD_NOT_OPEN_FILE;
 
-    NS_ADDREF(mSpoolFile);
+    NS_ADDREF(mSpoolFile.get());
     gtk_print_job_send(mPrintJob, print_callback, mSpoolFile, ns_release_macro);
   } else {
     // Handle print-to-file ourselves for the benefit of embedders
     nsXPIDLString targetPath;
     nsCOMPtr<nsILocalFile> destFile;
     mPrintSettings->GetToFileName(getter_Copies(targetPath));
 
     nsresult rv = NS_NewNativeLocalFile(NS_ConvertUTF16toUTF8(targetPath),