vcl/source/edit/textundo.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 5cb20b2084cf2270ba2c8f15fd899e2575696bad Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Aug 31 12:27:29 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Aug 31 22:21:59 2022 +0200
cid#1500647 silence Resource leak Change-Id: I3f3a3cb5f31aff28711786af18d4bedcbd8e9ab8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139109 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx index 9bc85b73911d..e53e60e5d5af 100644 --- a/vcl/source/edit/textundo.cxx +++ b/vcl/source/edit/textundo.cxx @@ -174,6 +174,7 @@ void TextUndoDelPara::Redo() auto it = ::std::find_if( rDocNodes.begin(), rDocNodes.end(), [&] (std::unique_ptr<TextNode> const & p) { return p.get() == mpNode; } ); assert(it != rDocNodes.end()); + // coverity[leaked_storage : FALSE] - ownership transferred to this with mbDelObject it->release(); GetDoc()->GetNodes().erase( it );