mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
embedding: cef_string_map_free()
This commit is contained in:
parent
37edcdcdde
commit
0a82eebaa2
1 changed files with 10 additions and 0 deletions
|
@ -123,3 +123,13 @@ pub extern "C" fn cef_string_map_clear(sm: *mut cef_string_map_t) {
|
|||
(*v).clear();
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn cef_string_map_free(sm: *mut cef_string_map_t) {
|
||||
unsafe {
|
||||
if fptr_is_null(mem::transmute(sm)) { return; }
|
||||
let v: Box<TreeMap<String, *mut cef_string_t>> = mem::transmute(sm);
|
||||
cef_string_map_clear(sm);
|
||||
drop(v);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue