diff options
Diffstat (limited to 'cppuhelper/source/component.cxx')
-rw-r--r-- | cppuhelper/source/component.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx index 369e2ead7be5..5c7226f93a1a 100644 --- a/cppuhelper/source/component.cxx +++ b/cppuhelper/source/component.cxx @@ -150,10 +150,8 @@ void OComponentHelper::dispose() { try { - Reference<XInterface > xSource( - Reference<XInterface >::query( static_cast<XComponent *>(this) ) ); EventObject aEvt; - aEvt.Source = xSource; + aEvt.Source = Reference<XInterface >::query( static_cast<XComponent *>(this) ); // inform all listeners to release this object // The listener container are automatically cleared rBHelper.aLC.disposeAndClear( aEvt ); |