msrle32: Fix a memory leak (Valgrind).
Signed-off-by: Sven Baars <sven.wine@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c7c0706b04
commit
e5857da273
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue