diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-26 08:56:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-26 11:12:04 +0200 |
commit | b4339ccd5e161ec156d67babd4095a1b55f315fc (patch) | |
tree | 4b27aad5d0f3602213124410a578ecb9db815ed6 /editeng | |
parent | 1d26a480fa2920c1e705b45ceb53466a6a6b013a (diff) |
cid#1500704 silence Resource leak
Change-Id: I5ab44c6aca318a56e63b8bba7dda51b4ec534a59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138861
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 41a8cf20f1b8..c3777f111783 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -2121,6 +2121,7 @@ void EditDoc::Release(sal_Int32 nPos) SAL_WARN( "editeng", "EditDoc::Release - out of bounds pos " << nPos); return; } + // coverity[leaked_storage] - this is on purpose, ownership should be transferred to undo/redo (void)maContents[nPos].release(); maContents.erase(maContents.begin() + nPos); } |