summaryrefslogtreecommitdiff
path: root/gusb/gusb-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'gusb/gusb-context.c')
-rw-r--r--gusb/gusb-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c
index 86f6819..f10ad86 100644
--- a/gusb/gusb-context.c
+++ b/gusb/gusb-context.c
@@ -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;