From 90b978a41af73b3996308a72058ec99d3e57de90 Mon Sep 17 00:00:00 2001
From: Vadim Seregin <vseregin@qti.qualcomm.com>
Date: Tue, 11 Jul 2023 09:14:38 +0000
Subject: [PATCH] Fix: Memory release for m_pictureSeiNalus

---
 source/Lib/DecoderLib/DecLib.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/source/Lib/DecoderLib/DecLib.cpp b/source/Lib/DecoderLib/DecLib.cpp
index beda91b3c..d29e4cd90 100644
--- a/source/Lib/DecoderLib/DecLib.cpp
+++ b/source/Lib/DecoderLib/DecLib.cpp
@@ -545,6 +545,11 @@ DecLib::~DecLib()
     m_prefixSEINALUs.pop_front();
   }
 
+  while( !m_pictureSeiNalus.empty() )
+  {
+    delete m_pictureSeiNalus.front();
+    m_pictureSeiNalus.pop_front();
+  }
 }
 
 void DecLib::create()
-- 
GitLab