win_fix_multi_tab: linux build

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-10-26 07:43:54 -07:00
parent c87e7f1e28
commit 702c81cafe
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,6 @@ use crate::cliprdr::*;
use hbb_common::log;
use std::sync::Mutex;
#[cfg(windows)]
lazy_static::lazy_static! {
static ref CONTEXT_SEND: ContextSend = ContextSend{addr: Mutex::new(0)};
}

View File

@ -249,8 +249,8 @@ pub(super) fn release_resouce() {
if *write_lock != 0 {
let cap_display_info: *mut CapDisplayInfo = *write_lock as _;
unsafe {
let box_capturer = Box::from_raw((*cap_display_info).capturer.0);
let box_cap_display_info = Box::from_raw(cap_display_info);
let _box_capturer = Box::from_raw((*cap_display_info).capturer.0);
let _box_cap_display_info = Box::from_raw(cap_display_info);
*write_lock = 0;
}
}