Skip to content

Commit

Permalink
Unnecessary variable removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xoffio committed Oct 11, 2024
1 parent 542f7c9 commit 266cebe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frida/src/device_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,11 @@ impl<'a> DeviceManager<'a> {

impl<'a> Drop for DeviceManager<'a> {
fn drop(&mut self) {
let mut error: *mut frida_sys::GError = std::ptr::null_mut();
unsafe {
frida_sys::frida_device_manager_close_sync(
self.manager_ptr,
std::ptr::null_mut(),
&mut error,
std::ptr::null_mut(),
);
frida_sys::frida_unref(self.manager_ptr as _)
}
Expand Down

0 comments on commit 266cebe

Please sign in to comment.