diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2004-07-15 14:25:48 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2004-07-15 14:25:48 (GMT) |
commit | ce17cf6da7544c90acffaa21682b527d1996506d (patch) | |
tree | 299a028e7afeb9a17edfb46578cbb427703b00c4 /Mac/Modules/cf/cfsupport.py | |
parent | d9e50f554f4ce51681cc399e7ff55cd716898322 (diff) | |
download | cpython-ce17cf6da7544c90acffaa21682b527d1996506d.zip cpython-ce17cf6da7544c90acffaa21682b527d1996506d.tar.gz cpython-ce17cf6da7544c90acffaa21682b527d1996506d.tar.bz2 |
The CF inheritance could cause double frees of the underlying objects.
Fixed.
Diffstat (limited to 'Mac/Modules/cf/cfsupport.py')
-rw-r--r-- | Mac/Modules/cf/cfsupport.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Mac/Modules/cf/cfsupport.py b/Mac/Modules/cf/cfsupport.py index f236e6d..95aeaa7 100644 --- a/Mac/Modules/cf/cfsupport.py +++ b/Mac/Modules/cf/cfsupport.py @@ -273,6 +273,7 @@ class MyGlobalObjectDefinition(PEP253Mixin, GlobalObjectDefinition): Output("if (self->ob_freeit && self->ob_itself)") OutLbrace() Output("self->ob_freeit((CFTypeRef)self->ob_itself);") + Output("self->ob_itself = NULL;") OutRbrace() def outputCompare(self): |