From 593ae82fcba3ac9a094862bb40a788237e2bcd5a Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Mon, 2 Feb 2004 18:30:09 +0000
Subject: INTEGRATION: CWS geordi2q14 (1.1.34); FILE MERGED 2004/01/29 18:09:56
hr 1.1.34.1: #111934#: merge CWS ooo111fix2
---
pyuno/source/module/pyuno_gc.cxx | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
(limited to 'pyuno')
diff --git a/pyuno/source/module/pyuno_gc.cxx b/pyuno/source/module/pyuno_gc.cxx
index 3a9da266544d..2d67810c0df4 100644
--- a/pyuno/source/module/pyuno_gc.cxx
+++ b/pyuno/source/module/pyuno_gc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pyuno_gc.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: jbu $ $Date: 2003-03-23 12:12:57 $
+ * last change: $Author: hr $ $Date: 2004-02-02 19:30:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,6 +88,16 @@ void GCThread::run()
{
PyThreadAttach guard( (PyInterpreterState*)mPyInterpreter );
{
+ Runtime runtime;
+
+ // remove the reference from the pythonobject2adapter map
+ PyRef2Adapter::iterator ii =
+ runtime.getImpl()->cargo->mappedObjects.find( mPyObject );
+ if( ii != runtime.getImpl()->cargo->mappedObjects.end() )
+ {
+ runtime.getImpl()->cargo->mappedObjects.erase( ii );
+ }
+
Py_XDECREF( mPyObject );
}
}
--
cgit