From 78a0b84aeff64537a3a99803c692c8e564ff15ca Mon Sep 17 00:00:00 2001 From: BPanther Date: Fri, 1 Mar 2024 13:51:22 +0100 Subject: [PATCH] fix memleak at dvb subtitles (thx DBoxOldie) --- lib/libdvbsub/dvbsubtitle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libdvbsub/dvbsubtitle.cpp b/lib/libdvbsub/dvbsubtitle.cpp index 767d5fc0f..a6c3fcd03 100644 --- a/lib/libdvbsub/dvbsubtitle.cpp +++ b/lib/libdvbsub/dvbsubtitle.cpp @@ -198,6 +198,8 @@ void cDvbSubtitleBitmaps::Draw(int &min_x, int &min_y, int &max_x, int &max_y) max_x = xoff + nw; if (max_y < (yoff + nh)) max_y = yoff + nh; + + free(newdata); } if (Count())