mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
The CF inheritance could cause double frees of the underlying objects.
Fixed.
This commit is contained in:
parent
d9e50f554f
commit
ce17cf6da7
2 changed files with 11 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue