From 6d1cde22830f538b2c36428dfbc19d0839f13d2b Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 7 Apr 2015 17:56:01 +0200 Subject: [PATCH] Stop leaking the Vec. --- ports/cef/wrappers.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/ports/cef/wrappers.rs b/ports/cef/wrappers.rs index 9964eac6728..29a04e38678 100644 --- a/ports/cef/wrappers.rs +++ b/ports/cef/wrappers.rs @@ -257,7 +257,6 @@ impl<'a> CefWrap for String { ptr::write(&mut (*boxed_string).str, buffer); 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))); - mem::forget(utf16_chars); } boxed_string }