fix CSSNodeList memory leak
Summary: CSSNodeListFree does not free the list->items memory Closes https://github.com/facebook/css-layout/pull/214 Differential Revision: D3683643 Pulled By: emilsjolander fbshipit-source-id: 7f9ef19f4603d5558cc2f8302756b3bcec2f6c12
This commit is contained in:
committed by
Facebook Github Bot 5
parent
256d080fd2
commit
faad5cdf4d
@@ -27,7 +27,10 @@ CSSNodeListRef CSSNodeListNew(uint32_t initialCapacity) {
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSSNodeListFree(CSSNodeListRef list) { free(list); }
|
void CSSNodeListFree(CSSNodeListRef list) {
|
||||||
|
free(list->items);
|
||||||
|
free(list);
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t CSSNodeListCount(CSSNodeListRef list) { return list->count; }
|
uint32_t CSSNodeListCount(CSSNodeListRef list) { return list->count; }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user