embedding: cef_string_list_free()

This commit is contained in:
Mike Blumenkrantz 2014-10-14 15:23:08 -04:00
parent 866483f05e
commit 04020d2a19

View file

@ -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);
}
}