Skip to content

Commit

Permalink
fix leak
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed Mar 1, 2024
1 parent e32528c commit f13abef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/C++/Core/Ap4EsdsAtom.cpp
Expand Up @@ -76,6 +76,9 @@ AP4_EsdsAtom::AP4_EsdsAtom(AP4_UI32 size,
if (AP4_DescriptorFactory::CreateDescriptorFromStream(stream, descriptor)
== AP4_SUCCESS) {
m_EsDescriptor = AP4_DYNAMIC_CAST(AP4_EsDescriptor, descriptor);
if (!m_EsDescriptor) {
delete descriptor;
}
} else {
m_EsDescriptor = NULL;
}
Expand Down

0 comments on commit f13abef

Please sign in to comment.