Don't accidentially free provider when connecting to installation proxy

This commit is contained in:
Jackson Coxson
2025-03-24 19:09:24 -06:00
parent 3dd920cd4d
commit 715e777f72
3 changed files with 35 additions and 16 deletions

View File

@@ -69,6 +69,7 @@ pub unsafe extern "C" fn idevice_tcp_provider_new(
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tcp_provider_free(provider: *mut TcpProviderHandle) {
if !provider.is_null() {
log::debug!("Freeing TCP provider");
unsafe { drop(Box::from_raw(provider)) };
}
}