mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
embedding: cef_string_multimap_free()
This commit is contained in:
parent
32d6cff440
commit
8b231a26e4
1 changed files with 10 additions and 0 deletions
|
@ -149,3 +149,13 @@ pub extern "C" fn cef_string_multimap_clear(smm: *mut cef_string_multimap_t) {
|
||||||
(*v).clear();
|
(*v).clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[no_mangle]
|
||||||
|
pub extern "C" fn cef_string_multimap_free(smm: *mut cef_string_multimap_t) {
|
||||||
|
unsafe {
|
||||||
|
if smm.is_null() { return; }
|
||||||
|
let v: Box<TreeMap<String, Vec<*mut cef_string_t>>> = mem::transmute(smm);
|
||||||
|
cef_string_multimap_clear(smm);
|
||||||
|
drop(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue