added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / libs / muimaster / mui_disposeobject.c
blob3ee65d56d6f4b31bf1047afff20e5a47749c5c52
1 /*
2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/muimaster.h>
7 #include <proto/intuition.h>
9 #include "muimaster_intern.h"
11 /*****************************************************************************
13 NAME */
14 AROS_LH1(VOID, MUI_DisposeObject,
16 /* SYNOPSIS */
17 AROS_LHA(Object *, obj, A0),
19 /* LOCATION */
20 struct Library *, MUIMasterBase, 6, MUIMaster)
22 /* FUNCTION
23 Deletes MUI object and its child objects.
25 INPUTS
26 obj -- pointer to MUI object created with MUI_NewObject. Maybe NULL,
27 in which case this function has no effect.
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
36 The function itself is a bug ;-) Remove it!
38 SEE ALSO
40 INTERNALS
42 MUI will call DisposeObject(), then call CloseLibrary() on
43 OCLASS(obj)->h_Data if cl_ID!=NULL && h_Data!=NULL.
45 HISTORY
46 2006-04-11 NULL check added.
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 if ( ! obj) return;
54 Class *cl = OCLASS(obj);
56 DisposeObject(obj);
58 MUI_FreeClass(cl);
60 AROS_LIBFUNC_EXIT
62 } /* MUIA_DisposeObject */