windowscodecs: Fix resource leak (coverity).

This commit is contained in:
André Hentschel 2012-10-24 20:53:17 +02:00 committed by Alexandre Julliard
parent 31eef521e9
commit bbefb29d1c
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ MakeMapObject(int ColorCount,
Object->Colors = ungif_calloc(ColorCount, sizeof(GifColorType));
if (Object->Colors == NULL) {
ungif_free(Object);
return NULL;
}