Commit e5857da2 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

msrle32: Fix a memory leak (Valgrind).

parent c7c0706b
......@@ -1544,6 +1544,11 @@ static LRESULT CompressEnd(CodecInfo *pi)
pi->pCurFrame = NULL;
pi->nPrevFrame = -1;
pi->bCompress = FALSE;
if (pi->palette_map != NULL) {
LocalFree(pi->palette_map);
pi->palette_map = NULL;
}
}
return ICERR_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment