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();