2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include <intuition/classes.h>
8 #include <proto/alib.h>
9 #include "intuition_intern.h"
11 /*****************************************************************************
14 #include <intuition/classusr.h>
15 #include <proto/intuition.h>
17 AROS_LH1(void, DisposeObject
,
20 AROS_LHA(APTR
, object
, A0
),
23 struct IntuitionBase
*, IntuitionBase
, 107, Intuition
)
26 Deletes a BOOPSI object. All memory associated with the object
27 is freed. The object must have been created with NewObject().
28 Some object contain other object which might be freed as well
29 when this function is used on the "parent" while others might
30 also contain children but won't free them. Read the documentation
31 of the class carefully to find out how it behaves.
34 object - The result of a call to NewObject() or a similar function,
41 This functions sends OM_DISPOSE to the oejct.
48 NewObjectA(), SetAttrsA(), GetAttr(), MakeClass()
49 "Basic Object-Oriented Programming System for Intuition" and
50 "boopsi Class Reference" Document.
54 *****************************************************************************/
58 STACKULONG MethodID
= OM_DISPOSE
;
60 DEBUG_DISPOSEOBJECT(dprintf("DisposeObject: Object 0x%lx\n", object
));
65 DoMethodA (object
, (Msg
)&MethodID
);
67 DEBUG_DISPOSEOBJECT(dprintf("DisposeObject: 0x%lx deleted\n", object
));
69 DEBUG_DISPOSEOBJECT(dprintf("DisposeObject: done\n"));
72 } /* DisposeObject() */