diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-26 16:02:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-27 13:58:23 +0100 |
commit | f34c1e9ba7d831c42c89d3c59d501ce6cc858dbe (patch) | |
tree | 76ba9cd6bd24d988f8e9c4bc6f2c531b6d1f6386 /sd | |
parent | 3a34f96a16ad3063302670a57a1ed508302e3ffb (diff) |
tdf#91416 - fix some incorrectly allocated VirtualDevices.
Change-Id: I9ebed313827986473c60e77b7e218b4c1b2487fe
(cherry picked from commit f849d96463d967214bc063f6de912a082272c395)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-text.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx index cfbf7a6f61e3..a89019901a14 100644 --- a/sd/source/filter/eppt/pptx-text.cxx +++ b/sd/source/filter/eppt/pptx-text.cxx @@ -1432,7 +1432,7 @@ sal_uInt32 FontCollection::GetId( FontCollectionEntry& rEntry ) aFont.SetHeight( 100 ); if ( !pVDev ) - pVDev = new VirtualDevice; + pVDev = VclPtr<VirtualDevice>::Create(); pVDev->SetFont( aFont ); FontMetric aMetric( pVDev->GetFontMetric() ); |