mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
embedding: cef_string_list_free()
This commit is contained in:
parent
866483f05e
commit
04020d2a19
1 changed files with 10 additions and 0 deletions
|
@ -62,3 +62,13 @@ extern "C" fn cef_string_list_clear(lt: *mut cef_string_list_t) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
extern "C" fn cef_string_list_free(lt: *mut cef_string_list_t) {
|
||||
unsafe {
|
||||
if fptr_is_null(mem::transmute(lt)) { return; }
|
||||
let mut v: Box<Vec<*mut cef_string_t>> = mem::transmute(lt);
|
||||
cef_string_list_clear(lt);
|
||||
drop(v);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue