Ignore:
Timestamp:
Sep 30, 2006, 8:06:47 PM (16 years ago)
Author:
Sam Hocevar
Message:
  • Fixed a few unimportant memory leaks upon error.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/src/figlet.c

    r1150 r1151  
    162162            {
    163163                free(data);
     164                free(font->lookup);
    164165                free(font);
    165166                fprintf(stderr, "read error at glyph %u in `%s'\n",
     
    193194    {
    194195        free(data);
     196        free(font->lookup);
    195197        free(font);
    196198        fprintf(stderr, "only %u glyphs in `%s', expected at least %u\n",
     
    207209    if(!font->image)
    208210    {
    209         cucul_free_canvas(font->image);
     211        free(font->lookup);
    210212        free(font);
    211213        fprintf(stderr, "libcucul could not load data in `%s'\n", path);
Note: See TracChangeset for help on using the changeset viewer.