Implement dc_get_abs_path_safe

This commit is contained in:
Alexander Krotov
2019-08-05 19:21:31 +03:00
parent e9ff02bdc5
commit 76dbb37609
3 changed files with 84 additions and 158 deletions

View File

@@ -1047,10 +1047,8 @@ pub fn housekeeping(context: &Context) {
unreferenced_count,
entry.file_name()
);
unsafe {
let path = entry.path().to_c_string().unwrap();
dc_delete_file(context, path.as_ptr());
}
let path = entry.path().to_c_string().unwrap();
dc_delete_file(context, path.as_ptr());
}
}
Err(err) => {