mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
fnt2bdf: Fixed 2 resource leaks.
This commit is contained in:
parent
39d4d12c08
commit
a30625306d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user