mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-23 01:44:42 +03:00
Squash leaks
svn path=/trunk/netsurf/; revision=6559
This commit is contained in:
parent
abb231b633
commit
15d7987723
@ -1025,6 +1025,7 @@ struct css_working_stylesheet *css_make_working_stylesheet(
|
||||
rule_scratch = talloc_array(working_stylesheet, struct css_selector *,
|
||||
css_count);
|
||||
if (!rule_scratch) {
|
||||
free(css);
|
||||
talloc_free(working_stylesheet);
|
||||
return 0;
|
||||
}
|
||||
@ -1033,11 +1034,13 @@ struct css_working_stylesheet *css_make_working_stylesheet(
|
||||
for (chain = 0; chain != HASH_SIZE; chain++) {
|
||||
if (!css_working_merge_chains(working_stylesheet, css,
|
||||
css_count, chain, rule_scratch)) {
|
||||
free(css);
|
||||
talloc_free(working_stylesheet);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
free(css);
|
||||
talloc_free(rule_scratch);
|
||||
|
||||
#ifdef DEBUG_WORKING_STYLESHEET
|
||||
|
Loading…
x
Reference in New Issue
Block a user