diff --git a/frida-gum/src/interceptor.rs b/frida-gum/src/interceptor.rs index 27d68e0..c1e7c4f 100644 --- a/frida-gum/src/interceptor.rs +++ b/frida-gum/src/interceptor.rs @@ -263,3 +263,10 @@ impl Drop for Listener { unsafe { frida_gum_sys::g_object_unref(*ptr) } } } + +impl Clone for Listener { + fn clone(&self) -> Self { + let Self(NativePointer(ptr)) = self; + Self(NativePointer(unsafe { frida_gum_sys::g_object_ref(*ptr) })) + } +}