Properly reset gfx->codecs after free.

This commit is contained in:
akallabeth 2021-06-30 08:52:52 +02:00 committed by akallabeth
parent 4622c58332
commit 457b198c11

View File

@ -1573,6 +1573,7 @@ void gdi_graphics_pipeline_uninit(rdpGdi* gdi, RdpgfxClientContext* gfx)
gfx->custom = NULL;
codecs_free(gfx->codecs);
gfx->codecs = NULL;
DeleteCriticalSection(&gfx->mux);
PROFILER_PRINT_HEADER
PROFILER_PRINT(gfx->SurfaceProfiler)