summaryrefslogtreecommitdiffstats
path: root/wizards
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-29 07:42:57 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-29 07:42:57 +0000
commitf66f04e6b8627414834de09f1154bafd5c87a9bb (patch)
tree01456fb8978d7f948795d3de4d7be4a47bea721f /wizards
parentINTEGRATION: CWS dba24e_SRC680 (1.12.62); FILE MERGED (diff)
downloadcore-f66f04e6b8627414834de09f1154bafd5c87a9bb.tar.gz
core-f66f04e6b8627414834de09f1154bafd5c87a9bb.zip
INTEGRATION: CWS dba24e_SRC680 (1.22.120); FILE MERGED
2007/12/19 12:28:44 oj 1.22.120.1: #i84339# handle refcount by releasing the objects as early as possible, gc is not alsways the best way to trust :-)
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/report/CallReportWizard.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java
index b0149880bf0a..75e6b00db7e1 100644
--- a/wizards/com/sun/star/wizards/report/CallReportWizard.java
+++ b/wizards/com/sun/star/wizards/report/CallReportWizard.java
@@ -4,9 +4,9 @@
*
* $RCSfile: CallReportWizard.java,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: vg $ $Date: 2006-04-07 12:50:10 $
+ * last change: $Author: vg $ $Date: 2008-01-29 08:42:57 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -119,7 +119,6 @@ public class CallReportWizard {
public void trigger(String sEvent){
try{
- com.sun.star.frame.XComponentLoader xcomponentloader = (com.sun.star.frame.XComponentLoader) com.sun.star.uno.UnoRuntime.queryInterface(com.sun.star.frame.XComponentLoader.class, xmultiservicefactory.createInstance("com.sun.star.frame.Desktop"));
if (sEvent.compareTo("start") == 0) {
if (bWizardstartedalready != true){
ReportWizard CurReportWizard = new ReportWizard(xmultiservicefactory);
@@ -131,6 +130,11 @@ public class CallReportWizard {
}
bWizardstartedalready = false;
}
+ else if (sEvent.compareTo("end") == 0) {
+ DocumentDefinition = null;
+ Document = null;
+ databaseproperties = null;
+ }
else if (sEvent.compareTo("fill") == 0){
Dataimport CurDataimport = new Dataimport(xmultiservicefactory);
XTextDocument xTextDocument = null;
@@ -149,7 +153,9 @@ public class CallReportWizard {
}
catch( Exception exception ){
System.err.println( exception );
- }}
+ }
+ System.gc();
+ }
/** The service name, that must be used to get an instance of this service.