Commit bbefb29d authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

windowscodecs: Fix resource leak (coverity).

parent 31eef521
...@@ -159,6 +159,7 @@ MakeMapObject(int ColorCount, ...@@ -159,6 +159,7 @@ MakeMapObject(int ColorCount,
Object->Colors = ungif_calloc(ColorCount, sizeof(GifColorType)); Object->Colors = ungif_calloc(ColorCount, sizeof(GifColorType));
if (Object->Colors == NULL) { if (Object->Colors == NULL) {
ungif_free(Object);
return NULL; return NULL;
} }
......
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