diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 20:47:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-28 20:51:01 +0100 |
commit | 2ac1551397222276f6c3a0cfbd4544c6aafce093 (patch) | |
tree | 2336396d3dae9716ed2ce9b2c74b67e218689696 /vcl/source/outdev/outdev.cxx | |
parent | 4d88c6dee6d57fa9c366b67624842aefa429f527 (diff) |
mem leak in OutDevStackState
regression since cf3c6cb40f99fa1761a6af3d7447a899b9447868
Change-Id: I74900c93a1aee87e7ae0a6fa58905f751a528756
Diffstat (limited to 'vcl/source/outdev/outdev.cxx')
-rw-r--r-- | vcl/source/outdev/outdev.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx index 5af2be34fa2e..62f31d6f1ea7 100644 --- a/vcl/source/outdev/outdev.cxx +++ b/vcl/source/outdev/outdev.cxx @@ -206,6 +206,7 @@ OutputDevice::~OutputDevice() mpOutDevStateStack->pop_back(); } } + delete mpOutDevStateStack; // release the active font instance if( mpFontEntry ) @@ -213,11 +214,9 @@ OutputDevice::~OutputDevice() // remove cached results of GetDevFontList/GetDevSizeList // TODO: use smart pointers for them - if( mpGetDevFontList ) - delete mpGetDevFontList; + delete mpGetDevFontList; - if( mpGetDevSizeList ) - delete mpGetDevSizeList; + delete mpGetDevSizeList; // release ImplFontCache specific to this OutputDevice // TODO: refcount ImplFontCache |