summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-15 18:00:29 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-15 18:03:17 +0200
commit53d496642170048b82ae67caae964bba8998efdf (patch)
tree1e374f4cde62cad2a279a91b099f82c18f4ef38b /sw
parent4eb856f0b42f56b1203e05fd397a424d7c74c255 (diff)
sw: WW8 import: delete leaked SdrGrafObj (and temp file)
The SdrObject returned from SvxMSDffManager::GetShape() is owned by the caller; since it's not inserted anywhere it has to be deleted. Change-Id: Iaac6467592ec4151173a586a6dc71f9bc44b44f0
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 7b96f8537e75..555aa16c42bc 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -4340,6 +4340,7 @@ void wwSectionManager::SetSegmentToPageDesc(const wwSection &rSection,
rFmt.SetFmtAttr(aSet.Get(RES_BACKGROUND));
}
}
+ SdrObject::Free(pObject);
}
wwULSpaceData aULData;
GetPageULData(rSection, aULData);