Bug 1354443 part.2 nsPrintEngine::Disconnect() should clear mPrintObj r=dholbert
authorMasayuki Nakano <masayuki@d-toybox.com>
Thu, 27 Apr 2017 17:17:20 +0900
changeset 358604 8d384ede2364c24219815663f142a922867c84fc
parent 358603 4e1b8abc499e2a86c5912e54fac443c5758ba914
child 358605 2329af476fa639074778fd849bea6e205a904505
push id31832
push userryanvm@gmail.com
push dateWed, 17 May 2017 00:10:32 +0000
treeherdermozilla-central@41958333867b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1354443
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1354443 part.2 nsPrintEngine::Disconnect() should clear mPrintObj r=dholbert MozReview-Commit-ID: 1fUZ8YJCvxh
layout/printing/nsPagePrintTimer.h
--- a/layout/printing/nsPagePrintTimer.h
+++ b/layout/printing/nsPagePrintTimer.h
@@ -50,17 +50,21 @@ public:
 
   NS_IMETHOD Run() override;
 
   void Stop();
 
   void WaitForRemotePrint();
   void RemotePrintFinished();
 
-  void Disconnect() { mPrintEngine = nullptr; }
+  void Disconnect()
+  {
+    mPrintEngine = nullptr;
+    mPrintObj = nullptr;
+  }
 
 private:
   ~nsPagePrintTimer();
 
   nsresult StartTimer(bool aUseDelay);
   nsresult StartWatchDogTimer();
   void     StopWatchDogTimer();
   void     Fail();