Skip to content

Commit

Permalink
vdisp/sdl2: fixed a leak
Browse files Browse the repository at this point in the history
reported as CID 469287
  • Loading branch information
MartinPulec committed Sep 24, 2024
1 parent 970475c commit bbcb4a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video_display/sdl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbcb4a7

Please sign in to comment.