mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
plug memory leak when reading/writing font_specs.
This commit is contained in:
parent
223ec0aca4
commit
a7fca9059d
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user