summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-11-17 10:18:40 +0000
committerOliver Specht <os@openoffice.org>2000-11-17 10:18:40 +0000
commitcd7f9a9c38b1a27a7fa50b8ff9497cc8041a9bc5 (patch)
treee969509039241ce1a7ec2866a5e6e07dd24a0d75
parent19d15b2b3620a51268d3b1660cacd02540867e17 (diff)
CreateTextRangeFromPosition: delete created SwUnoCrsr
-rw-r--r--sw/source/core/unocore/unoobj.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 0da4e52e30d2..2793d5a74654 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoobj.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: os $ $Date: 2000-11-17 10:51:18 $
+ * last change: $Author: os $ $Date: 2000-11-17 11:18:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1587,6 +1587,7 @@ uno::Reference< XTextRange > CreateTextRangeFromPosition(SwDoc* pDoc,
}
if(!aRet.is())
aRet = new SwXTextRange(*pNewCrsr, xParentText);
+ delete pNewCrsr;
return aRet;
}
/******************************************************************