summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-17 11:32:13 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-17 11:32:13 +0100
commitab17715fd5a99d5c37d5d6ee3ca1d319a85a74f2 (patch)
treeff899083349b2a898e908e01d23069b91635a66e
parentcbcedd66765bb932cb60c98f0fa60f3beecca270 (diff)
undoapi: release lock on own mutex when calling into the UndoHelper
-rwxr-xr-xchart2/source/model/main/UndoManager.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/chart2/source/model/main/UndoManager.cxx b/chart2/source/model/main/UndoManager.cxx
index 8e9ee25fa0c5..702dd2e5ab54 100755
--- a/chart2/source/model/main/UndoManager.cxx
+++ b/chart2/source/model/main/UndoManager.cxx
@@ -143,8 +143,10 @@ namespace chart
//--------------------------------------------------------------------------------------------------------------
void UndoManager_Impl::disposing()
{
- ::osl::MutexGuard aGuard( m_rMutex );
- m_bDisposed = true;
+ {
+ ::osl::MutexGuard aGuard( m_rMutex );
+ m_bDisposed = true;
+ }
m_aUndoHelper.disposing();
}