summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/gl_video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index 2a24c073e5..b04fa97500 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -1726,6 +1726,7 @@ void gl_video_upload_image(struct gl_video *p, struct mp_image *mpi)
p->osd_pts = mpi->pts;
if (p->hwdec_active) {
+ talloc_free(vimg->hwimage);
vimg->hwimage = mpi;
p->have_image = true;
return;