diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-10-01 10:46:46 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-10-01 10:46:46 (GMT) |
commit | cfb60ee1e88118ca50254cf073b934a136e9f96a (patch) | |
tree | 7f70825383edcad46001fdd5c63fe9265f69a57c /Mac/Modules/ctl/ctlsupport.py | |
parent | cc778ebd62a5e256c6cf44b32f417658cce1751c (diff) | |
download | cpython-cfb60ee1e88118ca50254cf073b934a136e9f96a.zip cpython-cfb60ee1e88118ca50254cf073b934a136e9f96a.tar.gz cpython-cfb60ee1e88118ca50254cf073b934a136e9f96a.tar.bz2 |
Fixed very nasty null-dereferencing bug in DisposeControl/destroy
object.
Diffstat (limited to 'Mac/Modules/ctl/ctlsupport.py')
-rw-r--r-- | Mac/Modules/ctl/ctlsupport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py index cef9f8a..3b32164 100644 --- a/Mac/Modules/ctl/ctlsupport.py +++ b/Mac/Modules/ctl/ctlsupport.py @@ -69,7 +69,7 @@ class MyObjectDefinition(GlobalObjectDefinition): GlobalObjectDefinition.outputInitStructMembers(self) Output("SetCRefCon(itself, (long)it);") def outputCleanupStructMembers(self): - Output("SetCRefCon(self->ob_itself, (long)0); /* Make it forget about us */") + Output("if (self->ob_itself) SetCRefCon(self->ob_itself, (long)0); /* Make it forget about us */") # Create the generator groups and link them module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff) |