summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-06-08 14:48:52 +0100
committerRichard Hughes <richard@hughsie.com>2015-06-08 14:48:52 +0100
commitc2a655b3290f45d5f117fc903f3c23bad6eee334 (patch)
treee05cbfef11671e357eec53ba44dcf0e4bf07696d
parent30e8c28c80dd8534c1a2f3f533b383aaa46bbe7f (diff)
downloadgusb-c2a655b3290f45d5f117fc903f3c23bad6eee334.tar.gz
Do not unref the GMainContext after each request
We no longer hold a reference.
-rw-r--r--gusb/gusb-device.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index 30f2742..fcb3cd4 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -820,7 +820,6 @@ g_usb_device_control_transfer (GUsbDevice *device,
&helper);
g_main_loop_run (helper.loop);
g_main_loop_unref (helper.loop);
- g_main_context_unref (helper.context);
if (actual_length != NULL)
*actual_length = (gsize) helper.ret;
@@ -878,7 +877,6 @@ g_usb_device_bulk_transfer (GUsbDevice *device,
&helper);
g_main_loop_run (helper.loop);
g_main_loop_unref (helper.loop);
- g_main_context_unref (helper.context);
if (actual_length != NULL)
*actual_length = (gsize) helper.ret;
@@ -936,7 +934,6 @@ g_usb_device_interrupt_transfer (GUsbDevice *device,
&helper);
g_main_loop_run (helper.loop);
g_main_loop_unref (helper.loop);
- g_main_context_unref (helper.context);
if (actual_length != NULL)
*actual_length = helper.ret;