Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / rom / graphics / freespritedata.c
blobdca7d5478eb0221d0c5a7820659f15ebbbd7579f
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Graphics function FreeSpriteData()
6 Lang: english
7 */
8 #include <aros/debug.h>
9 #include <graphics/sprite.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/graphics.h>
16 AROS_LH1(void, FreeSpriteData,
18 /* SYNOPSIS */
19 AROS_LHA(struct ExtSprite *, extsp, A2),
21 /* LOCATION */
22 struct GfxBase *, GfxBase, 172, Graphics)
24 /* FUNCTION
25 Free sprite data allocated by AllocSpriteData().
27 INPUTS
28 extsp - The extended sprite structure to be freed.
29 Passing NULL is a NO-OP.
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 HISTORY
46 ******************************************************************************/
48 AROS_LIBFUNC_INIT
50 if (NULL != extsp) {
51 if (NULL != extsp->es_BitMap) {
52 FreeBitMap(extsp->es_BitMap);
54 FreeVec(extsp);
57 AROS_LIBFUNC_EXIT
58 } /* FreeSpriteData */