Fix warning

Fix warning
This commit is contained in:
Andy Vandijck 2025-07-05 10:21:58 +02:00
parent d7c6eb81cd
commit 2a4697c04f
1 changed files with 2 additions and 4 deletions

View File

@ -2434,15 +2434,13 @@ void SDLDrawingPanel::DrawingPanelInit()
}
sdlwindow = SDL_CreateWindowWithProperties(props);
SDL_DestroyProperties(props);
if (sdlwindow == NULL) {
systemScreenMessage(_("Failed to create SDL window"));
return;
}
if (props != NULL)
SDL_DestroyProperties(props);
if (OPTION(kSDLRenderer) == wxString("default")) {
renderer = SDL_CreateRenderer(sdlwindow, NULL);
} else {