Tag: cws_src680_dba24a User: oj Date: 2007-09-05 11:04:21+0000 Modified: dba/dbaccess/source/ui/browser/dbexchange.cxx
Log: #i68334# fix ref count prob File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: dbexchange.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/dbexchange.cxx?r1=1.26.120.1&r2=1.26.120.2 Delta lines: +10 -9 -------------------- --- dbexchange.cxx 2007-08-30 09:04:43+0000 1.26.120.1 +++ dbexchange.cxx 2007-09-05 11:04:18+0000 1.26.120.2 @@ -4,9 +4,9 @@ * * $RCSfile: dbexchange.cxx,v $ * - * $Revision: 1.26.120.1 $ + * $Revision: 1.26.120.2 $ * - * last change: $Author: oj $ $Date: 2007/08/30 09:04:43 $ + * last change: $Author: oj $ $Date: 2007/09/05 11:04:18 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -239,18 +239,19 @@ // ----------------------------------------------------------------------------- void SAL_CALL ODataClipboard::disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException) { + Reference<XConnection> xConnection; + Reference<XResultSet> xProp; + if ( getDescriptor().has(daConnection) && (getDescriptor()[daConnection] >>= xConnection) ) + lcl_removeListener(xConnection,this); + if ( getDescriptor().has(daCursor) && (getDescriptor()[daCursor] >>= xProp) ) + lcl_removeListener(xProp,this); + ClearFormats(); - if ( getDescriptor().has(daConnection) && getDescriptor()[daConnection] == Source.Source ) - { - getDescriptor().erase(daConnection); - } - else if ( getDescriptor().has(daCursor) && getDescriptor()[daCursor] == Source.Source ) - getDescriptor().erase(daCursor); + getDescriptor().clear(); m_pHtml = NULL; m_pRtf = NULL; m_aEventListeners.clear(); - lcl_removeListener(Source.Source,this); } // ----------------------------------------------------------------------------- IMPLEMENT_FORWARD_XINTERFACE2( ODataClipboard, ODataAccessObjectTransferable, TDataClipboard_BASE ) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
