[Libreoffice-commits] core.git: sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 19 09:12:23 UTC 2021
sw/source/filter/ww8/ww8graf.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8356700d3a2d8be9c42c8d23247930ecadbb723d
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed May 19 08:50:05 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed May 19 11:11:18 2021 +0200
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 at collabora.co.uk>
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);
More information about the Libreoffice-commits
mailing list