The CF inheritance could cause double frees of the underlying objects.

Fixed.
This commit is contained in:
Jack Jansen 2004-07-15 14:25:48 +00:00
parent d9e50f554f
commit ce17cf6da7
2 changed files with 11 additions and 0 deletions

View file

@ -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):