From b698c690289ed98f594161dab7394ef9ccf0cbfd Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 25 Oct 2015 00:51:45 +0200 Subject: [PATCH] src/ofxAubioPitch.cpp: implement destructor --- src/ofxAubioPitch.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.11.0