nsc: Fix memory leak

Fixes the following memory leak:

==115716== 16,662,960 bytes in 459 blocks are definitely lost in loss record 3,504 of 3,504
==115716==    at 0x48396AF: malloc (vg_replace_malloc.c:306)
==115716==    by 0x4C6A4E2: nsc_context_initialize_encode (nsc_encode.c:77)
==115716==    by 0x4C6A4E2: nsc_compose_message (nsc_encode.c:497)
This commit is contained in:
Pascal Nowack 2020-06-26 16:33:19 +02:00
parent 9b7e621ca9
commit 9bd4574050

View File

@ -364,7 +364,7 @@ void nsc_context_free(NSC_CONTEXT* context)
if (context->priv)
{
for (i = 0; i < 4; i++)
for (i = 0; i < 5; i++)
free(context->priv->PlaneBuffers[i]);
nsc_profiler_print(context->priv);