msrle32: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Sven Baars 2019-06-02 16:21:37 +02:00 committed by Alexandre Julliard
parent c7c0706b04
commit e5857da273
1 changed files with 5 additions and 0 deletions

View File

@ -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;