From f8a56b324d6c0e1ebcc82a10100e4768b4f5f151 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 1 Nov 2011 09:30:52 +0000 Subject: trivial: fix a small memory leak when using the sync functions --- gusb/gusb-device.c | 1 + 1 file changed, 1 insertion(+) 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); } /** -- cgit v1.2.1