mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
aac8c58f0b
commit
b2a57722a8
4 changed files with 71 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue