From b2a57722a8ed9ba035707a50023105cdbfcfdaae Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 17 Jan 2003 23:11:17 +0000 Subject: 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. --- Python/mactoolboxglue.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/mactoolboxglue.c') diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c index 3dfd6991e5..16ed3b5a11 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") -- cgit v1.2.1