Commit a3062530 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

fnt2bdf: Fixed 2 resource leaks.

parent 39d4d12c
......@@ -216,7 +216,10 @@ static int dump_bdf( fnt_fontS* cpe_font_struct, unsigned char* file_buffer)
}
ic = dump_bdf_hdr(fp, cpe_font_struct, file_buffer);
if (ic) return (ic);
if (ic) {
fclose(fp);
return (ic);
}
/* NOW, convert all chars to UNIX (lton) notation... */
......@@ -544,7 +547,7 @@ int main(int argc, char **argv)
parse_options( argc, argv);
if( (fd = open( g_lpstrInputFile, O_RDONLY | O_BINARY)) )
if( (fd = open( g_lpstrInputFile, O_RDONLY | O_BINARY)) != -1 )
{
int i;
struct stat file_stat;
......
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