mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Don't accidentially free provider when connecting to installation proxy
This commit is contained in:
@@ -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)) };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user