]> granicus.if.org Git - python/commit
Fix a subtle decref bug that caused a GC assertion to fail in a debug
authorGuido van Rossum <guido@python.org>
Mon, 2 Jun 2003 14:11:45 +0000 (14:11 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 2 Jun 2003 14:11:45 +0000 (14:11 +0000)
commitf39dafb10a9c8b5d53c79f60ccf1bec77cc376a3
tree0481d3b23a2099d2182f91e4f0560a45caaf9021
parent01e32731649738b560f38cc7a17f4a20e64ea0b0
Fix a subtle decref bug that caused a GC assertion to fail in a debug
build (assert(gc->gc.gc_refs != 0) in visit_decref()).

Because OSSAudioError is a global, we must compensate (twice!) for
PyModule_AddObject()'s "helpful" decref of the object it adds.
Modules/ossaudiodev.c