mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
Inputs/MultiInputSource.cpp: fixed mismatching allocation and deallocation
Detected by Cppcheck: ``` Src/Inputs/MultiInputSource.cpp:87:3: error: Mismatching allocation and deallocation: CMultiInputSource::m_srcArray [mismatchAllocDealloc] delete m_srcArray; ^ ```
This commit is contained in:
parent
5332d8f945
commit
1cc94b7d79
|
@ -84,7 +84,7 @@ CMultiInputSource::CMultiInputSource(bool isOr, vector<CInputSource*> &sources)
|
||||||
CMultiInputSource::~CMultiInputSource()
|
CMultiInputSource::~CMultiInputSource()
|
||||||
{
|
{
|
||||||
if (m_srcArray != NULL)
|
if (m_srcArray != NULL)
|
||||||
delete m_srcArray;
|
delete [] m_srcArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMultiInputSource::Acquire()
|
void CMultiInputSource::Acquire()
|
||||||
|
|
Loading…
Reference in a new issue