diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-11-19 12:52:00 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:18 +0100 |
commit | a082d7b36e6d88ac4a8a1bf772c084ea460d488a (patch) | |
tree | ff212d0ce37448d2f7509612bc463ce2dd7cf9c6 | |
parent | ce51719a2807887eebbe8fba4793e8d6e6c20a41 (diff) |
fix a VirtualDevice leak
VclPtr is a smart ptr, but it does not own (and thus does not autodelete).
Change-Id: I2d9b924852d01b118fb0bc2a583063da230ee065
-rw-r--r-- | drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index c377f4ee6526..ae753a40a39b 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -170,7 +170,7 @@ namespace if (maDeviceTemplates[pRetval]->isDisposed()) { maDeviceTemplates.erase(pRetval); - pRetval = nullptr; + pRetval.disposeAndClear(); } else { |