News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

fclose missing in font.cc

Started by kniederk, May 25, 2010, 09:24:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kniederk

I believe that there is an fclose(f) missing in "font.cc" towards the end.   In practice this isn't very serious, because the case corresponds to a failure of reading the font, and in that case program execution is halted anyway, but I think it should still be added. 

Klaus


       if (dsp_read_bdf_font(f, fnt)) {
                fprintf(stderr, "Loading BDF font %s with %i characters\n", fname, fnt->num_chars);
                fclose(f);
                return true;
        }
---->>> add fclose(f) here ?
        return false;

Dwachs

thank you for spotting this out.
Parsley, sage, rosemary, and maggikraut.