diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-21 23:19:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-22 11:35:50 +0100 |
commit | 0717f32de0fa96ccf353ac074d040df0f4e27751 (patch) | |
tree | 0009c6c63442c7ce5e194c6162d83bac89b302ec /sw | |
parent | 2f34bec2a7b939e24c3c5e884fdfe2057b732248 (diff) |
Missing GraphicObject destruction, memory leak
...causes e.g. a leftover temp file like
_anonymous_namespace___WpftWriterFilterTest__test_9m9gdo.tmp in $TMPDIR during
CppunitTest_writerperfect_writer's processing of
writerperfect/qa/unit/data/writer/libwps/Write_3.1.wri.
The code lacking the delete was originally introduced with
e3911a61e60610d32d4f41ab0361ff495bbf3f95 "INTEGRATION: CWS fwk59: #i63867# let
the replacement image be imported", then heavily modified with
ec8258f3b78f6bc00a108fe0bef7656b86812b7d "INTEGRATION: CWS xmlfilter06".
Change-Id: Ie0830d5f358e6d81efe0bb9ef04d6a206bd27201
Reviewed-on: https://gerrit.libreoffice.org/45059
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index 8ae5042534d0..d9c508893107 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -1667,6 +1667,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& aGraphic = pGrfObj->GetGraphic(); bApply = true; } + delete pGrfObj; } else { |