summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2011-11-01 09:30:52 +0000
committerRichard Hughes <richard@hughsie.com>2011-11-01 09:30:52 +0000
commitf8a56b324d6c0e1ebcc82a10100e4768b4f5f151 (patch)
treef229ac24409ff2b4ae6b9548d4b1fce21f8886e6
parentf2d71bdb35223c7c8aac31e9f079bc224d777769 (diff)
downloadgusb-f8a56b324d6c0e1ebcc82a10100e4768b4f5f151.tar.gz
trivial: fix a small memory leak when using the sync functions
-rw-r--r--gusb/gusb-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index 26a08df..2336eba 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -438,6 +438,7 @@ g_usb_device_sync_transfer_cb (GUsbDevice *device,
{
helper->ret = (*helper->finish_func) (device, res, helper->error);
g_main_loop_quit (helper->loop);
+ g_main_loop_unref (helper->loop);
}
/**