Fix memory leak reported by Sylvain Rochette in issue #229.
This commit is contained in:
parent
58617584d4
commit
26723de502
@ -313,7 +313,7 @@ Kernel1::Kernel1(const Filter & f, int iscale, int samples/*= 32*/)
|
|||||||
|
|
||||||
Kernel1::~Kernel1()
|
Kernel1::~Kernel1()
|
||||||
{
|
{
|
||||||
delete m_data;
|
delete [] m_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print the kernel for debugging purposes.
|
// Print the kernel for debugging purposes.
|
||||||
@ -349,7 +349,7 @@ Kernel2::Kernel2(const Kernel2 & k) : m_windowSize(k.m_windowSize)
|
|||||||
|
|
||||||
Kernel2::~Kernel2()
|
Kernel2::~Kernel2()
|
||||||
{
|
{
|
||||||
delete m_data;
|
delete [] m_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normalize the filter.
|
// Normalize the filter.
|
||||||
|
Loading…
Reference in New Issue
Block a user