ptp: Unref timeout GSource for delay requests

https://bugzilla.gnome.org/show_bug.cgi?id=783864
This commit is contained in:
Andrejs Vasiljevs 2017-06-16 13:34:00 +00:00 committed by Sebastian Dröge
parent 25bf82a187
commit d99c9d9944

View file

@ -296,8 +296,10 @@ typedef struct
static void
ptp_pending_sync_free (PtpPendingSync * sync)
{
if (sync->timeout_source)
if (sync->timeout_source) {
g_source_destroy (sync->timeout_source);
g_source_unref(sync->timeout_source);
}
g_free (sync);
}