mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Stop leaking the Vec.
This commit is contained in:
parent
1fa1950ab1
commit
6d1cde2283
1 changed files with 0 additions and 1 deletions
|
@ -257,7 +257,6 @@ impl<'a> CefWrap<cef_string_userfree_t> for String {
|
||||||
ptr::write(&mut (*boxed_string).str, buffer);
|
ptr::write(&mut (*boxed_string).str, buffer);
|
||||||
ptr::write(&mut (*boxed_string).length, utf16_chars.len() as u64);
|
ptr::write(&mut (*boxed_string).length, utf16_chars.len() as u64);
|
||||||
ptr::write(&mut (*boxed_string).dtor, Some(free_utf16_buffer as extern "C" fn(*mut c_ushort)));
|
ptr::write(&mut (*boxed_string).dtor, Some(free_utf16_buffer as extern "C" fn(*mut c_ushort)));
|
||||||
mem::forget(utf16_chars);
|
|
||||||
}
|
}
|
||||||
boxed_string
|
boxed_string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue