commit | c574b43d35e08f85843bb72938850ecd1dde7d82 | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Fri Apr 12 16:26:59 1996 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Fri Apr 12 16:26:59 1996 +0000 |
tree | 2f43d80d0eb72736d92150b3a285ec181a008667 | |
parent | da6a9719940925c3a6173434d7aa55b9a69c3b4d [diff] [blame] |
Fixed a nasty bug where FindControl could return a reference to a destroyed python object.
diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c index bc690cd..33111f5 100644 --- a/Mac/Modules/ctl/Ctlmodule.c +++ b/Mac/Modules/ctl/Ctlmodule.c
@@ -95,7 +95,7 @@ static void CtlObj_dealloc(self) ControlObject *self; { - /* Cleanup of self->ob_itself goes here */ + SetCRefCon(self->ob_itself, (long)0); /* Make it forget about us */ PyMem_DEL(self); }