summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-18 02:13:38 +0200
committerwm4 <wm4@nowhere>2014-06-18 02:13:38 +0200
commit8161d454085bd38e64076514c779c411576e9be2 (patch)
tree6cd9002b5e17e57376926989eae51fcaaa7220d2
parentc048b5db02333ad198ac1bd9ca793b31efdaff1f (diff)
downloadmpv-8161d454085bd38e64076514c779c411576e9be2.tar.bz2
mpv-8161d454085bd38e64076514c779c411576e9be2.tar.xz
gl_video: fix refcounting
-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;