home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Encyclopedia of Graphics File Formats Companion
/
GFF_CD.ISO
/
formats
/
off
/
code
/
destroyo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-20
|
682b
|
45 lines
/*
*
* Description
* Destroy the specified object and deallocate all memory resources
* associated with it.
*
* Output
*
* Input
* Obj Pointer to object structure to be deallocated.
*
* Diagnostics
*
* Author
* Randi J. Rost
* Digital Equipment Corp.
* Workstation Systems Engineering
* Palo Alto, CA
*
* History
* 17-Nov-86 Created
*
*/
#include <stdio.h>
#include "off.h"
OFFDestroyObj(Obj)
OFFObjDesc *Obj;
{
OFFProperty *pProp, *nextProp;
pProp = Obj->FirstProp;
while (pProp != NULL)
{
nextProp = pProp->NextProp;
OFFFreeProperty(pProp);
pProp = nextProp;
}
free(Obj);
}