From 246f91b655d600c7a389e46b3fe0713a8009b76d Mon Sep 17 00:00:00 2001 From: Seth Madison Date: Mon, 26 Dec 2016 17:36:23 -0500 Subject: [PATCH] Fix a small memory leak in Ap4CommonEncryption --- Source/C++/Core/Ap4CommonEncryption.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/C++/Core/Ap4CommonEncryption.cpp b/Source/C++/Core/Ap4CommonEncryption.cpp index efd36567d..94acb39d0 100644 --- a/Source/C++/Core/Ap4CommonEncryption.cpp +++ b/Source/C++/Core/Ap4CommonEncryption.cpp @@ -1873,6 +1873,8 @@ class AP4_CencFragmentDecrypter : public AP4_Processor::FragmentHandler { m_SaizAtom(saiz_atom), m_SampleEncryptionAtom(sample_encryption_atom) {} + ~AP4_CencFragmentDecrypter() { delete m_SampleDecrypter; } + // methods virtual AP4_Result ProcessFragment(); virtual AP4_Result FinishFragment();