From 2be908a0e69a3bdcd68d4626fbf31c8dc7554b86 Mon Sep 17 00:00:00 2001 From: Ivo Hinkelmann Date: Tue, 14 Nov 2006 17:21:24 +0000 Subject: 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 --- pyuno/source/module/pyuno.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyuno') 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 arguments (1); Reference tmp_interface; - self = PyObject_NEW (PyUNO, &PyUNOType); + self = PyObject_New (PyUNO, &PyUNOType); if (self == NULL) return NULL; //NULL == error self->members = new PyUNOInternals(); -- cgit