From 1cc94b7d7959c6edc6556027c16da1c6cea226dd Mon Sep 17 00:00:00 2001 From: firewave Date: Sat, 2 Dec 2023 20:14:12 +0100 Subject: [PATCH] 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; ^ ``` --- Src/Inputs/MultiInputSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Inputs/MultiInputSource.cpp b/Src/Inputs/MultiInputSource.cpp index a2f4d34..6b0e814 100644 --- a/Src/Inputs/MultiInputSource.cpp +++ b/Src/Inputs/MultiInputSource.cpp @@ -84,7 +84,7 @@ CMultiInputSource::CMultiInputSource(bool isOr, vector &sources) CMultiInputSource::~CMultiInputSource() { if (m_srcArray != NULL) - delete m_srcArray; + delete [] m_srcArray; } void CMultiInputSource::Acquire()