summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-12-17 11:19:21 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-18 13:01:39 +0100
commit20463fb3e58cb0264b311b280e623a9e1937aa43 (patch)
tree99cb71b076bc7d0e484e0deaca557639915b2629
parentc4b4058b6b3a747b96f72ab44560da11726e4468 (diff)
ChildrenManagerImpl::AddShape: do not use member after releasing mutex
This crashed here once during some JunitTest with an rDescriptor that did not match maVisibleChildren.back(). [The mrContext member used here is const so shouldn't cause problems.] Change-Id: I31e54b166badef6472127c64f0a4f49c51c73b30 (cherry picked from commit ebb6c4407da2f8e913f1520b61a36ca3a4b54a7e)
-rw-r--r--svx/source/accessibility/ChildrenManagerImpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx
index ed9dc7cc8fb7..62269447c4f4 100644
--- a/svx/source/accessibility/ChildrenManagerImpl.cxx
+++ b/svx/source/accessibility/ChildrenManagerImpl.cxx
@@ -458,7 +458,7 @@ void ChildrenManagerImpl::AddShape (const Reference<drawing::XShape>& rxShape)
AccessibleEventId::CHILD,
aNewShape,
uno::Any());
- RegisterAsDisposeListener (rDescriptor.mxShape);
+ RegisterAsDisposeListener(rxShape);
}
}
}