diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-01-26 18:25:23 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-01-26 18:25:23 +0000 |
commit | ae7b1eec4712a309655de8af85babc9c3edc1fa8 (patch) | |
tree | 3fea082f5f6dc3f637a92b2feed2f5420fffba2d /sc/source/ui/docshell/dbdocimp.cxx | |
parent | b021881add5b00f98f3a54f9a4b97529a09ffb88 (diff) |
DoImport: dispose Rowset
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r-- | sc/source/ui/docshell/dbdocimp.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx index 9e7ba3be4668..ae60e2ab521f 100644 --- a/sc/source/ui/docshell/dbdocimp.cxx +++ b/sc/source/ui/docshell/dbdocimp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbdocimp.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: nn $ $Date: 2000-12-01 14:01:12 $ + * last change: $Author: nn $ $Date: 2001-01-26 19:25:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -464,6 +464,9 @@ BOOL ScDBDocFunc::DoImport( USHORT nTab, const ScImportParam& rParam, bSuccess = TRUE; } + uno::Reference<lang::XComponent> xComponent( xRowSet, uno::UNO_QUERY ); + if (xComponent.is()) + xComponent->dispose(); } } catch ( sdbc::SQLException& rError ) |