summaryrefslogtreecommitdiff
path: root/pyuno/source/module
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-11-14 17:21:24 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-11-14 17:21:24 +0000
commit2be908a0e69a3bdcd68d4626fbf31c8dc7554b86 (patch)
tree1b990cae9d73b28a31b61111c869a37708dc1132 /pyuno/source/module
parent3a38101e55bb6cf651866aef6648ab9eed6cca60 (diff)
INTEGRATION: CWS pyunofixes3_SRC680 (1.9.20); FILE MERGED
2006/11/06 18:11:11 pmladek 1.9.20.1: #i71078# Fix allocating and deleting python objects
Diffstat (limited to 'pyuno/source/module')
-rw-r--r--pyuno/source/module/pyuno.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index fae79ec12671..7fc04d1d483d 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: pyuno.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 05:03:05 $
+ * last change: $Author: ihi $ $Date: 2006-11-14 18:21:24 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -78,7 +78,7 @@ void PyUNO_del (PyObject* self)
{
PyUNO* me = reinterpret_cast< PyUNO* > (self);
delete me->members;
- PyMem_DEL (self);
+ PyObject_Del (self);
}
@@ -727,7 +727,7 @@ PyObject* PyUNO_new_UNCHECKED (
Sequence<Any> arguments (1);
Reference<XInterface> tmp_interface;
- self = PyObject_NEW (PyUNO, &PyUNOType);
+ self = PyObject_New (PyUNO, &PyUNOType);
if (self == NULL)
return NULL; //NULL == error
self->members = new PyUNOInternals();