mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
Fix double-free on error
Commit 44aa7f2c88
added calls to destroy
the renderer and the window, but forgot to remove the call to
screen_destroy() they were supposed to replace.
This commit is contained in:
parent
025388d38b
commit
b521ee180d
1 changed files with 0 additions and 1 deletions
|
@ -322,7 +322,6 @@ screen_init_rendering(struct screen *screen, const char *window_title,
|
|||
LOGC("Could not create texture: %s", SDL_GetError());
|
||||
SDL_DestroyRenderer(screen->renderer);
|
||||
SDL_DestroyWindow(screen->window);
|
||||
screen_destroy(screen);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue