Tag: cws_dev300_dba31b
User: oj      
Date: 2008-08-19 10:58:38+0000
Modified:
   dba/dbaccess/source/ui/dlg/adtabdlg.cxx

Log:
 #i44447# dispose listener

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: adtabdlg.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/adtabdlg.cxx?r1=1.30.68.1&r2=1.30.68.2
Delta lines:  +14 -1
--------------------
--- adtabdlg.cxx        2008-08-15 10:34:28+0000        1.30.68.1
+++ adtabdlg.cxx        2008-08-19 10:58:35+0000        1.30.68.2
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: adtabdlg.cxx,v $
- * $Revision: 1.30.68.1 $
+ * $Revision: 1.30.68.2 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -95,6 +95,8 @@
         ,m_bAllowViews(true)
     {
     }
+    virtual ~TableListFacade();
+    
 
 private:
     virtual void    updateTableObjectList( bool _bAllowViews );
@@ -106,6 +108,11 @@
        virtual void _elementReplaced( const 
::com::sun::star::container::ContainerEvent& _rEvent ) 
throw(::com::sun::star::uno::RuntimeException);
 };
 
+TableListFacade::~TableListFacade()
+{
+    if ( m_pContainerListener.is() )
+        m_pContainerListener->dispose();
+}
 
//------------------------------------------------------------------------------
 String TableListFacade::getSelectedName( String& _out_rAliasName ) const
 {
@@ -254,6 +261,7 @@
         ,m_xConnection( _rxConnection )
     {
     }
+    virtual ~QueryListFacade();
 private:
     virtual void    updateTableObjectList( bool _bAllowViews );
     virtual String  getSelectedName( String& _out_rAliasName ) const;
@@ -263,6 +271,11 @@
        virtual void _elementRemoved( const  
::com::sun::star::container::ContainerEvent& _rEvent ) 
throw(::com::sun::star::uno::RuntimeException);
        virtual void _elementReplaced( const 
::com::sun::star::container::ContainerEvent& _rEvent ) 
throw(::com::sun::star::uno::RuntimeException);
 };
+QueryListFacade::~QueryListFacade()
+{
+    if ( m_pContainerListener.is() )
+        m_pContainerListener->dispose();
+}
 // 
-----------------------------------------------------------------------------
 void QueryListFacade::_elementInserted( const container::ContainerEvent& 
_rEvent )  throw(::com::sun::star::uno::RuntimeException)
 {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to