mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
2e7fd7927e
commit
128cd62dcf
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user