Skip to content

Commit

Permalink
Fix a small memory leak in Ap4CommonEncryption
Browse files Browse the repository at this point in the history
  • Loading branch information
baconz committed Dec 26, 2016
1 parent 29986f0 commit 246f91b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/C++/Core/Ap4CommonEncryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 246f91b

Please sign in to comment.