plug memory leak when reading/writing font_specs.

This commit is contained in:
toshok%netscape.com 1998-07-29 00:52:46 +00:00
parent 223ec0aca4
commit a7fca9059d

View File

@ -1111,6 +1111,8 @@ read_font_spec(char* name, void* field)
} while ( (tmp = strtok(NULL, ",")) != NULL );
free(copy);
}
free(font_spec);
}
@ -1140,6 +1142,8 @@ write_font_spec(char* name, void* field)
fe_FreeFontSettings(set);
write_str(name, &font_spec);
free(font_spec);
}