Bug 821991, prevent unexpected results in printing by keeping the setup stuff alive, r=roc, a=dveditz

--HG--
extra : rebase_source : 0d6001647eae7db48589a69c3dbd96a4dfb8df3f
This commit is contained in:
Olli Pettay 2013-01-08 14:03:49 +02:00
parent 2e7fd7927e
commit 128cd62dcf

View File

@ -411,6 +411,7 @@ nsPrintEngine::CommonPrint(bool aIsPrintPreview,
nsIPrintSettings* aPrintSettings,
nsIWebProgressListener* aWebProgressListener,
nsIDOMDocument* aDoc) {
nsRefPtr<nsPrintEngine> kungfuDeathGrip = this;
nsresult rv = DoCommonPrint(aIsPrintPreview, aPrintSettings,
aWebProgressListener, aDoc);
if (NS_FAILED(rv)) {