Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7ccf06ac6b2f
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 10068a3743fd
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 7, 2021

  1. Copy the full SHA
    10068a3 View commit details
Showing with 7 additions and 1 deletion.
  1. +7 −1 scopeprotocols/FFTFilter.cpp
8 changes: 7 additions & 1 deletion scopeprotocols/FFTFilter.cpp
Original file line number Diff line number Diff line change
@@ -65,6 +65,8 @@ FFTFilter::FFTFilter(const string& color)

#ifdef HAVE_CLFFT

m_clfftPlan = 0;

m_windowProgram = NULL;
m_rectangularWindowKernel = NULL;
m_cosineSumWindowKernel = NULL;
@@ -143,6 +145,9 @@ FFTFilter::~FFTFilter()
ffts_free(m_plan);

#ifdef HAVE_CLFFT
if(m_clfftPlan != 0)
clfftDestroyPlan(&m_clfftPlan);

delete m_windowProgram;
delete m_rectangularWindowKernel;
delete m_cosineSumWindowKernel;
@@ -234,7 +239,8 @@ void FFTFilter::ReallocateBuffers(size_t npoints_raw, size_t npoints, size_t nou
ffts_free(m_plan);

#ifdef HAVE_CLFFT
clfftDestroyPlan(&m_clfftPlan);
if(m_clfftPlan != 0)
clfftDestroyPlan(&m_clfftPlan);
#endif
}