Merge pull request #2637 from nfedera/fix-shadow_client_context_cleanup
shadow/client context cleanup and unused vars fix
This commit is contained in:
commit
e6891b7a78
2
libfreerdp/cache/brush.c
vendored
2
libfreerdp/cache/brush.c
vendored
@ -141,8 +141,6 @@ void* brush_cache_get(rdpBrushCache* brushCache, UINT32 index, UINT32* bpp)
|
||||
|
||||
void brush_cache_put(rdpBrushCache* brushCache, UINT32 index, void* entry, UINT32 bpp)
|
||||
{
|
||||
void* prevEntry;
|
||||
|
||||
if (bpp == 1)
|
||||
{
|
||||
if (index >= brushCache->maxMonoEntries)
|
||||
|
@ -277,7 +277,6 @@ int nsc_context_reset(NSC_CONTEXT* context)
|
||||
|
||||
NSC_CONTEXT* nsc_context_new(void)
|
||||
{
|
||||
UINT8 i;
|
||||
NSC_CONTEXT* context;
|
||||
|
||||
context = (NSC_CONTEXT*) calloc(1, sizeof(NSC_CONTEXT));
|
||||
|
@ -99,9 +99,10 @@ BOOL shadow_client_context_new(freerdp_peer* peer, rdpShadowClient* client)
|
||||
return TRUE;
|
||||
|
||||
shadow_encoder_free(client->encoder);
|
||||
client->encoder = NULL;
|
||||
fail_encoder_new:
|
||||
CloseHandle(client->StopEvent);
|
||||
client->encoder = NULL;
|
||||
client->StopEvent = NULL;
|
||||
fail_stop_event:
|
||||
WTSCloseServer((HANDLE) client->vcm);
|
||||
client->vcm = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user