ptp: Unref timeout GSource for delay requests
https://bugzilla.gnome.org/show_bug.cgi?id=783864
This commit is contained in:
parent
25bf82a187
commit
d99c9d9944
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user