From bbcb4a79373eb1257f5e3f3e4a799444f5a39366 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 24 Sep 2024 12:38:39 +0200 Subject: [PATCH] vdisp/sdl2: fixed a leak reported as CID 469287 --- src/video_display/sdl2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_display/sdl2.c b/src/video_display/sdl2.c index 0cb924a10..761d48d6b 100644 --- a/src/video_display/sdl2.c +++ b/src/video_display/sdl2.c @@ -551,6 +551,7 @@ static void loadSplashscreen(struct state_sdl2 *s) { struct video_frame *frame = get_splashscreen(); if (!display_sdl2_reconfigure_real(s, video_desc_from_frame(frame))) { MSG(WARNING, "Cannot render splashscreeen!\n"); + vf_free(frame); return; } struct video_frame *splash = display_sdl2_getf(s);