Skip to content
Snippets Groups Projects
Commit 25c675b5 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

lavd/sdl: do not manually free window_title and icon_title fields

They are automatically freed when calling av_write_trailer(). Simplify.
parent 8446bb33
No related branches found
No related tags found
No related merge requests found
...@@ -57,9 +57,6 @@ static int sdl_write_trailer(AVFormatContext *s) ...@@ -57,9 +57,6 @@ static int sdl_write_trailer(AVFormatContext *s)
{ {
SDLContext *sdl = s->priv_data; SDLContext *sdl = s->priv_data;
av_freep(&sdl->window_title);
av_freep(&sdl->icon_title);
if (sdl->overlay) { if (sdl->overlay) {
SDL_FreeYUVOverlay(sdl->overlay); SDL_FreeYUVOverlay(sdl->overlay);
sdl->overlay = NULL; sdl->overlay = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment