summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-04-13 20:10:16 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-04-13 20:13:28 +0200
commitcbbb24d0afcdbdac21d03ec4ee1455a3834afff4 (patch)
tree176da15591d147f31ab4be73e953ba2f22aaefc2
parent51e0d789c344547956764c3b5f0ef5a304f4e0aa (diff)
tdf#90566: memory leak: maChangeListeners is not properly disposed
+ exchange arguments of swap to use the same pattern as the other swap locations Thank you Mike Kaganski! Change-Id: Ie575d503349b3218c7a0211e1f81d791e995297e
-rw-r--r--sfx2/source/sidebar/Theme.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx
index 03dd0c1946ac..c3596b13bca3 100644
--- a/sfx2/source/sidebar/Theme.cxx
+++ b/sfx2/source/sidebar/Theme.cxx
@@ -390,13 +390,13 @@ void Theme::UpdateTheme (void)
void SAL_CALL Theme::disposing (void)
{
ChangeListeners aListeners;
- maChangeListeners.swap(aListeners);
+ aListeners.swap(maChangeListeners);
const lang::EventObject aEvent (static_cast<XWeak*>(this));
for (ChangeListeners::const_iterator
- iContainer(maChangeListeners.begin()),
- iContainerEnd(maChangeListeners.end());
+ iContainer(aListeners.begin()),
+ iContainerEnd(aListeners.end());
iContainer != iContainerEnd;
++iContainer)
{