mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 05:45: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()
|
||||
{
|
||||
if (m_srcArray != NULL)
|
||||
delete m_srcArray;
|
||||
delete [] m_srcArray;
|
||||
}
|
||||
|
||||
void CMultiInputSource::Acquire()
|
||||
|
|
Loading…
Reference in a new issue