diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-19 08:50:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-19 11:11:18 +0200 |
commit | 8356700d3a2d8be9c42c8d23247930ecadbb723d (patch) | |
tree | d395c0bfb227092d43902d0824d0a3f7ef9e1acd /sw/source/filter/ww8/ww8graf.cxx | |
parent | 419907270821c7bcbaa2b0a4925194a95705c624 (diff) |
fix leak in SwWW8ImplReader::Read_GrafLayer
Change-Id: I898c2380f1b7505c608ef0a865e1b7ca6c6dce25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115778
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8graf.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index c4ea188cf03f..912293c668cb 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -2704,7 +2704,7 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( tools::Long nGrafAnchorCp ) } } } - SwFormatURL* pFormatURL = new SwFormatURL(); + std::unique_ptr<SwFormatURL> pFormatURL(new SwFormatURL()); pFormatURL->SetURL( lnName, false ); if (!aObjName.isEmpty()) pFormatURL->SetName(aObjName); |