summaryrefslogtreecommitdiff
path: root/pyuno/source/module/pyuno_gc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno/source/module/pyuno_gc.cxx')
-rw-r--r--pyuno/source/module/pyuno_gc.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_gc.cxx b/pyuno/source/module/pyuno_gc.cxx
index 61eaabafe7f6..6ee657e17835 100644
--- a/pyuno/source/module/pyuno_gc.cxx
+++ b/pyuno/source/module/pyuno_gc.cxx
@@ -112,7 +112,10 @@ void decreaseRefCount( PyInterpreterState *interpreter, PyObject *object )
// interpreter lock is held or not
// TODO: Look for a more efficient solution
osl::Thread *t = new GCThread( interpreter, object );
- t->create();
+ // don't call create() because Valgrind complains about invalid read in
+ // the rather bizarre GCThread::onTerminated; try a lame workaround:
+ t->createSuspended();
+ t->resume();
}
}