summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-26 16:02:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-27 13:58:23 +0100
commitf34c1e9ba7d831c42c89d3c59d501ce6cc858dbe (patch)
tree76ba9cd6bd24d988f8e9c4bc6f2c531b6d1f6386 /svtools
parent3a34f96a16ad3063302670a57a1ed508302e3ffb (diff)
tdf#91416 - fix some incorrectly allocated VirtualDevices.
Change-Id: I9ebed313827986473c60e77b7e218b4c1b2487fe (cherry picked from commit f849d96463d967214bc063f6de912a082272c395)
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 9b7bb5955e69..5414eaf37dc1 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -725,7 +725,7 @@ LineListBox::LineListBox( vcl::Window* pParent, WinBits nWinStyle ) :
ListBox( pParent, nWinStyle ),
m_nWidth( 5 ),
m_sNone( ),
- aVirDev( new VirtualDevice ),
+ aVirDev( VclPtr<VirtualDevice>::Create() ),
aColor( COL_BLACK ),
maPaintCol( COL_BLACK )
{