From f55570809211f85d2990545aa28a18375a1014d0 Mon Sep 17 00:00:00 2001 From: Lukas Schneiderbauer Date: Mon, 6 Jan 2025 00:09:04 +0100 Subject: [PATCH] Scales destructor: move implementation into .cpp instead of .h --- src/fcwt.cpp | 4 ++++ src/fcwt.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fcwt.cpp b/src/fcwt.cpp index 20e464e..e4796bd 100644 --- a/src/fcwt.cpp +++ b/src/fcwt.cpp @@ -114,6 +114,10 @@ void Morlet::getWavelet(float scale, complex* pwav, int pn) { //================== Scales =====================================// //==============================================================// +Scales::~Scales() { + free(scales); +} + Scales::Scales(Wavelet *wav, SCALETYPE st, int afs, float af0, float af1, int afn) { fs = afs; diff --git a/src/fcwt.h b/src/fcwt.h index 380c425..caf696d 100644 --- a/src/fcwt.h +++ b/src/fcwt.h @@ -119,7 +119,7 @@ class Morlet : public Wavelet { class Scales { public: FCWT_LIBRARY_API Scales(Wavelet *pwav, SCALETYPE st, int fs, float f0, float f1, int fn); - ~Scales() { free(scales); }; + ~Scales(); // void FCWT_LIBRARY_API getScales(float *pfreqs, int pnf); // void FCWT_LIBRARY_API getFrequencies(float *pfreqs, int pnf);