mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-12 19:19:04 +00:00
Fix window leak on icon error
This commit is contained in:
parent
8761dcb7a8
commit
04542a9f58
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ sc_screen_init(struct sc_screen *screen,
|
||||||
} else {
|
} else {
|
||||||
// without video, the icon is used as window content, it must be present
|
// without video, the icon is used as window content, it must be present
|
||||||
LOGE("Could not load icon");
|
LOGE("Could not load icon");
|
||||||
goto error_destroy_fps_counter;
|
goto error_destroy_window;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_Surface *icon_novideo = params->video ? NULL : icon;
|
SDL_Surface *icon_novideo = params->video ? NULL : icon;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue