mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,sdl] fix verbose logging
only call SDL_DestroyTexture if texture != NULL
This commit is contained in:
@@ -162,7 +162,8 @@ SDL_Texture* SdlWidget::render_text_wrapped(SDL_Renderer* renderer, const std::s
|
||||
SdlWidget::~SdlWidget()
|
||||
{
|
||||
TTF_CloseFont(_font);
|
||||
SDL_DestroyTexture(_image);
|
||||
if (_image)
|
||||
SDL_DestroyTexture(_image);
|
||||
}
|
||||
|
||||
bool SdlWidget::error_ex(Uint32 res, const char* what, const char* file, size_t line,
|
||||
|
||||
Reference in New Issue
Block a user