Mercurial > hg > audiodb
view ReporterBase.h @ 445:d1771f436ff7 api-inversion
Better memory discipline
Use new rather than malloc()/calloc() for the qpointery bits of memory
that audioDB::query_loop ends up calling delete [] on.
We're still leaking memory in various places, but at least we're not
massively undefined...
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:56:41 +0000 |
parents | d9a88cfd4ab6 |
children | d3afc91d205d |
line wrap: on
line source
#ifndef __REPORTERBASE_H #define __REPORTERBASE_H class ReporterBase { public: virtual ~ReporterBase(){}; virtual void add_point(unsigned int trackID, unsigned int qpos, unsigned int spos, double dist) = 0; virtual void report(char*,void*) = 0; }; #endif