From 04a789fda5fd9cd9e5eedb45bbf7d1a29928b90c Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Wed, 26 Sep 2007 13:39:16 +0000 Subject: [PATCH] INTEGRATION: CWS dba24a (1.64.108); FILE MERGED 2007/09/05 11:02:57 oj 1.64.108.1: #i68334# fix ref count prob --- dbaccess/source/core/api/tablecontainer.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dbaccess/source/core/api/tablecontainer.cxx b/dbaccess/source/core/api/tablecontainer.cxx index 3a25df3a265f..f486345b53c5 100644 --- a/dbaccess/source/core/api/tablecontainer.cxx +++ b/dbaccess/source/core/api/tablecontainer.cxx @@ -4,9 +4,9 @@ * * $RCSfile: tablecontainer.cxx,v $ * - * $Revision: 1.64 $ + * $Revision: 1.65 $ * - * last change: $Author: ihi $ $Date: 2006-10-18 13:27:52 $ + * last change: $Author: hr $ $Date: 2007-09-26 14:39:16 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -197,8 +197,6 @@ OTableContainer::OTableContainer(::cppu::OWeakObject& _rParent, ,m_bInDrop(sal_False) { DBG_CTOR(OTableContainer, NULL); - m_pTableMediator = new OContainerMediator( - this, Reference< XNameAccess >( _xTableDefinitions, UNO_QUERY ), m_xConnection, OContainerMediator::eTables ); } //------------------------------------------------------------------------------ @@ -344,6 +342,9 @@ connectivity::sdbcx::ObjectType OTableContainer::createObject(const ::rtl::OUStr if ( xTableDefinition.is() ) ::comphelper::copyProperties(xTableDefinition,xDest); + if ( !m_pTableMediator.is() ) + m_pTableMediator = new OContainerMediator( + this, m_xTableDefinitions.get(), m_xConnection, OContainerMediator::eTables ); if ( m_pTableMediator.is() ) m_pTableMediator->notifyElementCreated(_rName,xDest); }