Mercurial > hg > audiodb
view close.cpp @ 397:fb633cac9c3a api-inversion
Don't divide by zero.
This didn't show up in the default build, but if you take out the -O3
my system starts exiting with floating point errors. Neat.
author | mas01cr |
---|---|
date | Thu, 27 Nov 2008 15:19:45 +0000 |
parents | 78fed0d4c108 |
children | 58b88ab69424 |
line wrap: on
line source
#include "audioDB.h" extern "C" { #include "audioDB_API.h" } void audiodb_close(adb_t *adb) { free(adb->path); free(adb->header); close(adb->fd); free(adb); }