summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/dbdocimp.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-01-26 18:25:23 +0000
committerNiklas Nebel <nn@openoffice.org>2001-01-26 18:25:23 +0000
commitae7b1eec4712a309655de8af85babc9c3edc1fa8 (patch)
tree3fea082f5f6dc3f637a92b2feed2f5420fffba2d /sc/source/ui/docshell/dbdocimp.cxx
parentb021881add5b00f98f3a54f9a4b97529a09ffb88 (diff)
DoImport: dispose Rowset
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r--sc/source/ui/docshell/dbdocimp.cxx7
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 )