From: Paul Brossier Date: Sat, 24 Oct 2015 22:51:45 +0000 (+0200) Subject: src/ofxAubioPitch.cpp: implement destructor X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=b698c690289ed98f594161dab7394ef9ccf0cbfd;p=ofxAubio.git src/ofxAubioPitch.cpp: implement destructor --- diff --git a/src/ofxAubioPitch.cpp b/src/ofxAubioPitch.cpp index 1511456..456d7e1 100644 --- a/src/ofxAubioPitch.cpp +++ b/src/ofxAubioPitch.cpp @@ -51,7 +51,10 @@ void ofxAubioPitch::setup(string method, int buf_s, int hop_s, int samplerate) ofxAubioPitch::~ofxAubioPitch() { - //if (pitch) del_aubio_pitch(Pitch); + ofLogNotice() << "deleted ofxAubioPitch"; + if (pitch) del_aubio_pitch(pitch); + if (aubio_input) del_fvec(aubio_input); + if (aubio_output) del_fvec(aubio_output); } void ofxAubioPitch::audioIn(float * input, int bufferSize, int nChannels)