Skip to content

Commit

Permalink
refactor(c_functions): don't drop the workspace files Box
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed May 15, 2023
1 parent 2060eb6 commit a51954c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub unsafe extern "C" fn parse_file_list(
"Parameter `parser` must not be `null`!"
);

let file_list = Box::from_raw(file_list);
let file_list = ManuallyDrop::new(Box::from_raw(file_list));

let files = ManuallyDrop::new(
Vec::from_raw_parts(
Expand Down

0 comments on commit a51954c

Please sign in to comment.