Skip to content

Commit

Permalink
Fix hotplug after threaded device removal
Browse files Browse the repository at this point in the history
Somehow this worked when we unref'd the context but did not ref it.
  • Loading branch information
hughsie committed Dec 7, 2021
1 parent 197fc9e commit 2493461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gusb/gusb-context.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ g_usb_context_hotplug_cb (struct libusb_context *ctx,
GUsbContextIdleHelper *helper;

helper = g_new0 (GUsbContextIdleHelper, 1);
helper->context = context;
helper->context = g_object_ref (context);
helper->dev = libusb_ref_device (dev);
helper->event = event;

Expand Down

0 comments on commit 2493461

Please sign in to comment.