From 9f0b4347bcbdd1745684f0858904594d34953ba5 Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Wed, 16 Jan 2008 23:10:23 -0800 Subject: [PATCH] Fix bustage on Solaris from bug 193001. --- widget/src/gtk2/nsDeviceContextSpecG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/gtk2/nsDeviceContextSpecG.cpp b/widget/src/gtk2/nsDeviceContextSpecG.cpp index 1fd069f1455..d354b1e086b 100644 --- a/widget/src/gtk2/nsDeviceContextSpecG.cpp +++ b/widget/src/gtk2/nsDeviceContextSpecG.cpp @@ -675,7 +675,7 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::EndDocument() 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