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
This commit is contained in:
Karl Tomlinson 2011-03-25 16:38:59 +13:00
parent 9024614d36
commit 386ecc3d1d

View File

@ -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;
}