Tag: cws_src680_dba201b
User: fs      
Date: 05/07/20 03:19:49

Modified:
 /dba/dbaccess/source/core/dataaccess/
  databasecontext.cxx

Log:
 #i52171# better control over model ownership

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: databasecontext.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/databasecontext.cxx?r1=1.30.2.1&r2=1.30.2.2
Delta lines:  +3 -7
-------------------
--- databasecontext.cxx 11 Jul 2005 13:37:00 -0000      1.30.2.1
+++ databasecontext.cxx 20 Jul 2005 10:19:46 -0000      1.30.2.2
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: databasecontext.cxx,v $
  *
- *  $Revision: 1.30.2.1 $
+ *  $Revision: 1.30.2.2 $
  *
- *  last change: $Author: fs $ $Date: 2005/07/11 13:37:00 $
+ *  last change: $Author: fs $ $Date: 2005/07/20 10:19:46 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -427,11 +427,7 @@
         // calls registerPrivate in attachResource
            xModel->attachResource(_sURL,aArgs);
 
-        // since the model has been newly created, we're its owner. However, 
we do not
-        // really need it, we ust used it for loading the document. So, 
dispose it to prevent
-        // leaks
-        // #i50905# / 2005-06-20 / [EMAIL PROTECTED]
-        ::comphelper::disposeComponent( xModel );
+        SharedUNOComponent< XModel, CloseableComponent > aEnsureClose( xModel, 
true /* take ownership */ );
     }
 
     setTransientProperties(_sURL,xExistent);




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

Reply via email to