From 386ecc3d1d3bac8295ac020d8f191b4ad3a12fb2 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Fri, 25 Mar 2011 16:38:59 +1300 Subject: [PATCH] b=626539 free standardGtkPaperSize in the other cases also r=roc --HG-- extra : transplant_source : %FC%BA%9F%F6%A2%F5E%DF6%FBo%BB%D4%D3%E1%9F%BB%D5%CF%B5 --- 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 69a398ac0433..3804398afb15 100644 --- a/widget/src/gtk2/nsDeviceContextSpecG.cpp +++ b/widget/src/gtk2/nsDeviceContextSpecG.cpp @@ -547,10 +547,10 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::Init(nsIWidget *aWidget, properPaperSize = standardGtkPaperSize; } else { properPaperSize = geckosHackishPaperSize; - gtk_paper_size_free(standardGtkPaperSize); } gtk_print_settings_set_paper_size(mGtkPrintSettings, properPaperSize); gtk_page_setup_set_paper_size_and_default_margins(mGtkPageSetup, properPaperSize); + gtk_paper_size_free(standardGtkPaperSize); return NS_OK; }