From ac31a3c1d1e2c8414047e9070c22e2bfaec0eb5c Mon Sep 17 00:00:00 2001 From: Andrejs Vasiljevs Date: Fri, 16 Jun 2017 13:34:00 +0000 Subject: [PATCH] ptp: Unref timeout GSource for delay requests https://bugzilla.gnome.org/show_bug.cgi?id=783864 --- libs/gst/net/gstptpclock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/gst/net/gstptpclock.c b/libs/gst/net/gstptpclock.c index 79951a3..6557cfa 100644 --- a/libs/gst/net/gstptpclock.c +++ b/libs/gst/net/gstptpclock.c @@ -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); } -- 2.7.4