home *** CD-ROM | disk | FTP | other *** search
- /*
- #### # # # #
- # # # # # The FreeWare C library for
- # # ## ### # # # # ### RISC OS machines
- # # # # # # # # # # # ___________________________________
- # # #### ### ## # # # #
- # # # # # # # # # # Please refer to the accompanying
- #### ### #### # # ##### # ### documentation for conditions of use
- ________________________________________________________________________
-
- File: Clear.c.Free
- Author: Copyright © 1993, 1994 Jason Howat
- Version: 1.01 (13 May 1994)
- Purpose: Release all memory used by a Clear file.
- History: 1.00 (16 Dec 1993) initial version
- 1.01 (13 May 1994) updated to use Desk_Mem_ library
- */
-
-
- #include <stdlib.h>
-
- #include "Desk.Clear.h"
- #include "Desk.Mem.h"
- #include "Desk.DeskMem.h"
-
-
- void Desk_Clear_Free(Desk_clear_picture *picture)
- {
- if(picture->bitmap)
- Desk_Mem_Free((void **)&picture->bitmap);
- if(picture->palette)
- Desk_Mem_Free((void **)&picture->palette);
- Desk_DeskMem_Free(picture);
- }
-