mirror of https://github.com/mpv-player/mpv
vo_sdl: fix glaring memory leak
Who knows when this broke?
This commit is contained in:
parent
e4c5876f57
commit
0906f758d3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue