mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[coverity] 1543936 Missing unlock
This commit is contained in:
parent
c3939a750c
commit
f98e459833
@ -39,7 +39,7 @@ BOOL shadow_client_init_lobby(rdpShadowServer* server)
|
|||||||
|
|
||||||
rdtkEngine* engine = rdtk_engine_new();
|
rdtkEngine* engine = rdtk_engine_new();
|
||||||
if (!engine)
|
if (!engine)
|
||||||
goto fail;
|
return FALSE;
|
||||||
|
|
||||||
EnterCriticalSection(&lobby->lock);
|
EnterCriticalSection(&lobby->lock);
|
||||||
surface = rdtk_surface_new(engine, lobby->data, lobby->width, lobby->height, lobby->scanline);
|
surface = rdtk_surface_new(engine, lobby->data, lobby->width, lobby->height, lobby->scanline);
|
||||||
@ -75,10 +75,10 @@ BOOL shadow_client_init_lobby(rdpShadowServer* server)
|
|||||||
rdtk_surface_free(surface);
|
rdtk_surface_free(surface);
|
||||||
|
|
||||||
region16_union_rect(&(lobby->invalidRegion), &(lobby->invalidRegion), &invalidRect);
|
region16_union_rect(&(lobby->invalidRegion), &(lobby->invalidRegion), &invalidRect);
|
||||||
LeaveCriticalSection(&lobby->lock);
|
|
||||||
|
|
||||||
rc = TRUE;
|
rc = TRUE;
|
||||||
fail:
|
fail:
|
||||||
|
LeaveCriticalSection(&lobby->lock);
|
||||||
rdtk_engine_free(engine);
|
rdtk_engine_free(engine);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user