Skip to content

Commit

Permalink
fix memleak at dvb subtitles (thx DBoxOldie)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Mar 1, 2024
1 parent 0b6cd27 commit 78a0b84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libdvbsub/dvbsubtitle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 78a0b84

Please sign in to comment.