diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-01 09:35:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-01 12:20:24 +0000 |
commit | 4a05ab1dd4c7da10810fec9948b2de76b7bdd0b6 (patch) | |
tree | 852e70368ee86dc12ee97b96926f0c7118642e51 /sw | |
parent | 1bb8ae7a52564ec8b3d08ffe2175e466a02cfd76 (diff) |
Resolves: #i120028# SvxBorderLine leak
Change-Id: I652653ae8a99b8486e893c65b6c82b6ea6e4faec
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 4001639d3c85..599b1acf3dd7 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -1560,7 +1560,10 @@ sal_Int32 SwWW8ImplReader::MatchSdrBoxIntoFlyBoxItem(const Color& rLineColor, aLine.SetBorderLineStyle(nIdx); for(sal_uInt16 nLine = 0; nLine < 4; ++nLine) - rBox.SetLine(new SvxBorderLine( aLine ), nLine); + { + //aLine is cloned by SetLine + rBox.SetLine(&aLine, nLine); + } } return nOutsideThick; |