mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 15:21:43 +00:00
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
@@ -319,9 +319,7 @@ WIN_SetWindowTitle(_THIS, SDL_Window * window)
|
||||
title = NULL;
|
||||
}
|
||||
SetWindowText(hwnd, title ? title : TEXT(""));
|
||||
if (title) {
|
||||
SDL_free(title);
|
||||
}
|
||||
SDL_free(title);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user