0
ウィンドウの作成に失敗した場合はSDL_DestroyWindowを呼び出す必要がありますか?私は以下のコードを持っています:ウィンドウの作成に失敗した場合はSDL_DestroyWindowを呼び出す必要がありますか?
if(this->Window == NULL)
{
std::cout << "Error: Can't create the SDL Window \n" << SDL_GetError() << "\n";
SDL_DestroyWindow(this->Window);
std::exit(EXIT_FAILURE);
}
間違っていますか?