Fixed clang scanbuild false positive memory leak.

The memset did confuse the analyzer. Remove it as the variable
is already initialized to zero.
This commit is contained in:
Armin Novak 2019-01-29 17:06:08 +01:00
parent 0dae6933ce
commit d5720b7999

View File

@ -243,10 +243,7 @@ static UINT rdpgfx_decode_AVC444(RDPGFX_PLUGIN* gfx, RDPGFX_SURFACE_COMMAND* cmd
h264.bitstream[1].length = Stream_GetRemainingLength(s);
}
else
{
h264.bitstream[0].length = Stream_GetRemainingLength(s);
memset(&h264.bitstream[1], 0, sizeof(h264.bitstream[1]));
}
cmd->extra = (void*) &h264;