Commit 3b8f4531 authored by Devin Heitmueller's avatar Devin Heitmueller Committed by Jean-Baptiste Kempf

Fix memory leak when using subtitles with VDPAU

When rendering closed captions with VDPAU, nothing frees the subpicture,
causing a leak that bleeds all the memory out of the system within
minutes.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 89089ebc9f7625b7317262803394d96139325e54)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 62dc2df2
......@@ -315,7 +315,11 @@ static void Wait(vout_display_t *vd, picture_t *pic, subpicture_t *subpicture)
}
sys->current = pic;
(void) subpicture;
/* We already dealt with the subpicture in the Queue phase, so it's safe to
delete at this point */
if (subpicture)
subpicture_Delete(subpicture);
}
static int Control(vout_display_t *vd, int query, va_list ap)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment