shadow/client context cleanup and unused vars fix

This commit is contained in:
Norbert Federa 2015-05-21 10:56:56 +02:00
parent cd0a8e0506
commit 535a4352a7
3 changed files with 2 additions and 4 deletions

View File

@ -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 brush_cache_put(rdpBrushCache* brushCache, UINT32 index, void* entry, UINT32 bpp)
{ {
void* prevEntry;
if (bpp == 1) if (bpp == 1)
{ {
if (index >= brushCache->maxMonoEntries) if (index >= brushCache->maxMonoEntries)

View File

@ -277,7 +277,6 @@ int nsc_context_reset(NSC_CONTEXT* context)
NSC_CONTEXT* nsc_context_new(void) NSC_CONTEXT* nsc_context_new(void)
{ {
UINT8 i;
NSC_CONTEXT* context; NSC_CONTEXT* context;
context = (NSC_CONTEXT*) calloc(1, sizeof(NSC_CONTEXT)); context = (NSC_CONTEXT*) calloc(1, sizeof(NSC_CONTEXT));

View File

@ -99,9 +99,10 @@ BOOL shadow_client_context_new(freerdp_peer* peer, rdpShadowClient* client)
return TRUE; return TRUE;
shadow_encoder_free(client->encoder); shadow_encoder_free(client->encoder);
client->encoder = NULL;
fail_encoder_new: fail_encoder_new:
CloseHandle(client->StopEvent); CloseHandle(client->StopEvent);
client->encoder = NULL; client->StopEvent = NULL;
fail_stop_event: fail_stop_event:
WTSCloseServer((HANDLE) client->vcm); WTSCloseServer((HANDLE) client->vcm);
client->vcm = NULL; client->vcm = NULL;