Merge pull request #1634 from ealmloff/fix-string-memory-leak

Fix string memory leak
This commit is contained in:
Jonathan Kelley 2023-12-06 21:16:43 -08:00 committed by GitHub
commit f52233c095
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -707,7 +707,7 @@ impl<'a, 'b> IntoDynNode<'b> for &'a str {
impl IntoDynNode<'_> for String {
fn into_vnode(self, cx: &ScopeState) -> DynamicNode {
DynamicNode::Text(VText {
value: cx.bump().alloc(self),
value: cx.bump().alloc_str(&self),
id: Default::default(),
})
}