2005-12-01 22:14:27 +00:00
|
|
|
/*
|
|
|
|
*
|
2006-09-15 14:55:39 +00:00
|
|
|
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
|
2005-12-01 22:14:27 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "libcontainer.h"
|
2008-04-20 16:20:54 +00:00
|
|
|
#include "container.h"
|
2005-12-01 22:14:27 +00:00
|
|
|
|
2008-04-20 16:20:54 +00:00
|
|
|
void container_close(stream_FILE *file)
|
2005-12-01 22:14:27 +00:00
|
|
|
{
|
|
|
|
if (file == NULL)
|
2008-04-20 16:20:54 +00:00
|
|
|
return;
|
2005-12-01 22:14:27 +00:00
|
|
|
|
2008-04-20 16:20:54 +00:00
|
|
|
if (((container_FILE*)file)->container)
|
|
|
|
free(((container_FILE*)file)->container);
|
2005-12-01 22:14:27 +00:00
|
|
|
|
|
|
|
free(file);
|
|
|
|
|
2008-04-20 16:20:54 +00:00
|
|
|
return;
|
2005-12-01 22:14:27 +00:00
|
|
|
}
|