summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 18:30:09 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-02 18:30:09 +0000
commit593ae82fcba3ac9a094862bb40a788237e2bcd5a (patch)
treed04c8c700c60ffb21b00aaacc10bc0e46216d511 /pyuno
parent9823595326094c8f78267970a5050dc21353d941 (diff)
INTEGRATION: CWS geordi2q14 (1.1.34); FILE MERGED
2004/01/29 18:09:56 hr 1.1.34.1: #111934#: merge CWS ooo111fix2
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_gc.cxx14
1 files changed, 12 insertions, 2 deletions
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 );
}
}