00001 /* 00002 * Copyright (c) 2005-2012 by KoanLogic s.r.l. <http://www.koanlogic.com> 00003 * All rights reserved. 00004 * 00005 * This file is part of KLone, and as such it is subject to the license stated 00006 * in the LICENSE file which you have received as part of this distribution. 00007 * 00008 * $Id: codec.c,v 1.12 2007/10/26 11:21:51 tho Exp $ 00009 */ 00010 00011 #include <klone/codec.h> 00012 #include <u/libu.h> 00013 00024 int codec_free(codec_t *codec) 00025 { 00026 if(codec) 00027 { 00028 if(codec->free) 00029 codec->free(codec); 00030 else 00031 U_FREE(codec); 00032 } 00033 return 0; 00034 }