mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 06:39:39 +00:00
Destroy mutex if strdup failed
Signed-off-by: npes87184 <npes87184@gmail.com>
This commit is contained in:
parent
ec66b3be82
commit
a3ab92226d
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ SDL_bool installer_init(struct installer *installer, const char *serial) {
|
||||||
installer->serial = SDL_strdup(serial);
|
installer->serial = SDL_strdup(serial);
|
||||||
if (!installer->serial) {
|
if (!installer->serial) {
|
||||||
LOGW("Cannot strdup serial");
|
LOGW("Cannot strdup serial");
|
||||||
|
SDL_DestroyMutex(installer->mutex);
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue