home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / d / desklib / !DeskSrc / FN / Libraries / Clear / c0 / Free < prev    next >
Encoding:
Text File  |  1996-05-10  |  1.1 KB  |  35 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Clear.c.Free
  12.     Author:  Copyright © 1993, 1994 Jason Howat
  13.     Version: 1.01 (13 May 1994)
  14.     Purpose: Release all memory used by a Clear file.
  15.     History: 1.00 (16 Dec 1993)   initial version
  16.              1.01 (13 May 1994)   updated to use Desk_Mem_ library
  17. */
  18.  
  19.  
  20. #include <stdlib.h>
  21.  
  22. #include "Desk.Clear.h"
  23. #include "Desk.Mem.h"
  24. #include "Desk.DeskMem.h"
  25.  
  26.  
  27. void Desk_Clear_Free(Desk_clear_picture *picture)
  28. {
  29.   if(picture->bitmap)
  30.     Desk_Mem_Free((void **)&picture->bitmap);
  31.   if(picture->palette)
  32.     Desk_Mem_Free((void **)&picture->palette);
  33.   Desk_DeskMem_Free(picture);
  34. }
  35.