Kaydet (Commit) f4e7b775 authored tarafından Mark Wielaard's avatar Mark Wielaard Kaydeden (comit) Noel Power

FileDialogHelper_Impl::addFilters. Don't leak matcher.

commit 178fc3 removed the creation of filter matcher and explicitly
set mbDeleteMatcher to sal_False. commit 551f85 reintroduced the
matchers, but forgot the remove the explicit setting of mbDeleteMatcher.
Causing mpMatcher to never get deleted even if a new SfxFilterMatcher
was created.

Change-Id: I59f085e1c3ce088f9215be60fb7161364bad0cbe
Reviewed-on: https://gerrit.libreoffice.org/4154Reviewed-by: 's avatarNoel Power <noel.power@suse.com>
Tested-by: 's avatarNoel Power <noel.power@suse.com>
üst 628065f9
......@@ -1828,9 +1828,6 @@ void FileDialogHelper_Impl::addFilters( const String& rFactory,
TSortedFilterList aIter (xResult);
// no matcher any longer used ...
mbDeleteMatcher = sal_False;
// append the filters
OUString sFirstFilter;
if (OPEN == lcl_OpenOrSave(m_nDialogType))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment