diff --git a/libfprint/fp-context.c b/libfprint/fp-context.c index 70d4062a..77234c04 100644 --- a/libfprint/fp-context.c +++ b/libfprint/fp-context.c @@ -142,6 +142,7 @@ remove_device (FpContext *context, FpDevice *device) static void device_remove_on_notify_open_cb (FpContext *context, GParamSpec *pspec, FpDevice *device) { + g_signal_handlers_disconnect_by_func (device, device_remove_on_notify_open_cb, context); remove_device (context, device); }