summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-26 22:14:24 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:08:07 +0100
commit8dd74ea0862170c7705a6b9468dc16ee5e8c419b (patch)
tree192434e1c3bdc78afb47942e4f140096bd85f65f
parentFix LazyDelete crasher, and add & test more post-dispose robustness. (diff)
downloadcore-8dd74ea0862170c7705a6b9468dc16ee5e8c419b.tar.gz
core-8dd74ea0862170c7705a6b9468dc16ee5e8c419b.zip
Fix unintended destruction of adjacent printers.
also audit commit: "start wrapping OutputDevice in VclPtr" Change-Id: I6e018d7c3e3c8f941c184ad1aaa8593f7750c620
-rw-r--r--vcl/source/gdi/print.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 7c48a7fa1fe3..3cbc34d08839 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1067,8 +1067,8 @@ void Printer::dispose()
else
pSVData->maGDIData.mpLastPrinter = mpPrev;
- mpPrev.disposeAndClear();
- mpNext.disposeAndClear();
+ mpPrev.clear();
+ mpNext.clear();
OutputDevice::dispose();
}