From a625a8ae93f5b402d440915cd2428bcb742bd2fa Mon Sep 17 00:00:00 2001 From: Adrian Antkowiak Date: Tue, 1 Aug 2023 00:12:37 +0200 Subject: [PATCH] delete wrote atoms --- Source/C++/Core/Ap4Processor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/C++/Core/Ap4Processor.cpp b/Source/C++/Core/Ap4Processor.cpp index c4e1d78f7..441e722de 100644 --- a/Source/C++/Core/Ap4Processor.cpp +++ b/Source/C++/Core/Ap4Processor.cpp @@ -164,6 +164,7 @@ AP4_Processor::ProcessFragments(AP4_MoovAtom* moov, // if this is not a moof atom, just write it back and continue if (atom->GetType() != AP4_ATOM_TYPE_MOOF) { result = atom->Write(output); + delete atom; if (AP4_FAILED(result)) return result; continue; }