Kaydet (Commit) b3ac9676 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1244943 Resource leak

Change-Id: Ibee999fada60eed067d0d4e44a94294084529294
üst cb3b9075
......@@ -28,13 +28,13 @@ public:
void VclFontCharMapTest::testDefaultFontCharMap()
{
FontCharMap *fcmap = new FontCharMap(); // gets default map
FontCharMap fcmap; // gets default map
CPPUNIT_ASSERT( fcmap->IsDefaultMap() );
CPPUNIT_ASSERT( fcmap.IsDefaultMap() );
sal_uInt32 nStartBMPPlane = fcmap->GetFirstChar();
sal_uInt32 nStartSupBMPPlane = fcmap->GetNextChar(0xD800);
sal_uInt32 nEndBMPPlane = fcmap->GetLastChar();
sal_uInt32 nStartBMPPlane = fcmap.GetFirstChar();
sal_uInt32 nStartSupBMPPlane = fcmap.GetNextChar(0xD800);
sal_uInt32 nEndBMPPlane = fcmap.GetLastChar();
CPPUNIT_ASSERT( nStartBMPPlane == 0x0020 );
CPPUNIT_ASSERT( nStartSupBMPPlane == 0xE000 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment