fetch() now knows nothing about struct image; it simply loads a file and

returns the allocated buffer.
This commit is contained in:
Michael Brown
2007-01-12 08:02:27 +00:00
parent 2876197306
commit 475d6d1f7c
5 changed files with 19 additions and 22 deletions

View File

@@ -99,9 +99,7 @@ struct image * find_image ( const char *name ) {
* image.
*/
void free_image ( struct image *image ) {
if ( image->free )
image->free ( image->data );
image->free = NULL;
efree ( image->data );
image->data = UNULL;
image->len = 0;
}