diff options
author | wm4 <wm4@nowhere> | 2015-06-25 09:55:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-25 09:55:24 +0200 |
commit | 0906f758d3c6f26098287b4c089af70560d973e7 (patch) | |
tree | b23a0e0f4d5c1fccc7884e80b6ab161df641a33f /video | |
parent | e4c5876f574432ea852e58e8f4469cc775c7201e (diff) | |
download | mpv-0906f758d3c6f26098287b4c089af70560d973e7.tar.bz2 mpv-0906f758d3c6f26098287b4c089af70560d973e7.tar.xz |
vo_sdl: fix glaring memory leak
Who knows when this broke?
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_sdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index 03a0484738..d46590267f 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -907,6 +907,8 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) mp_image_copy(&texmpi, mpi); SDL_UnlockTexture(vc->tex); + + talloc_free(mpi); } SDL_Rect src, dst; |