From f849d96463d967214bc063f6de912a082272c395 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 26 May 2015 16:02:50 +0100 Subject: tdf#91416 - fix some incorrectly allocated VirtualDevices. Change-Id: I9ebed313827986473c60e77b7e218b4c1b2487fe --- sd/source/filter/eppt/pptx-text.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') 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::Create(); pVDev->SetFont( aFont ); FontMetric aMetric( pVDev->GetFontMetric() ); -- cgit