diff options
author | Richard Hughes <richard@hughsie.com> | 2011-11-01 09:30:52 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-11-01 09:30:52 +0000 |
commit | f8a56b324d6c0e1ebcc82a10100e4768b4f5f151 (patch) | |
tree | f229ac24409ff2b4ae6b9548d4b1fce21f8886e6 | |
parent | f2d71bdb35223c7c8aac31e9f079bc224d777769 (diff) | |
download | gusb-f8a56b324d6c0e1ebcc82a10100e4768b4f5f151.tar.gz |
trivial: fix a small memory leak when using the sync functions
-rw-r--r-- | gusb/gusb-device.c | 1 |
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); } /** |