diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-17 23:11:17 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-01-17 23:11:17 (GMT) |
commit | b2a57722a8ed9ba035707a50023105cdbfcfdaae (patch) | |
tree | 2d66a8b55a95b69eb1636c41ba4c0bab821769ae /Python | |
parent | aac8c58f0b053fba8ae8b042bcc3afef47fed943 (diff) | |
download | cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.zip cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.tar.gz cpython-b2a57722a8ed9ba035707a50023105cdbfcfdaae.tar.bz2 |
It turns out that some calls return AEDesc records that are "borrowed",
the AEDesc data shouldn't be disposed when the Python object is.
Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/mactoolboxglue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index 3dfd699..16ed3b5 100644 --- a/Python/mactoolboxglue.c +++ b/Python/mactoolboxglue.c @@ -534,6 +534,7 @@ GLUE_NEW(FSRef *, PyMac_BuildFSRef, "macfs") GLUE_CONVERT(FSRef, PyMac_GetFSRef, "macfs") GLUE_NEW(AppleEvent *, AEDesc_New, "Carbon.AE") /* XXXX Why by address? */ +GLUE_NEW(AppleEvent *, AEDesc_NewBorrowed, "Carbon.AE") GLUE_CONVERT(AppleEvent, AEDesc_Convert, "Carbon.AE") GLUE_NEW(Component, CmpObj_New, "Carbon.Cm") |