From: Andrejs Vasiljevs Date: Fri, 16 Jun 2017 13:34:00 +0000 (+0000) Subject: ptp: Unref timeout GSource for delay requests X-Git-Tag: 1.16.2~752 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d99c9d9944fd6dfa3470c25b8fde21ecc563cd5d;p=platform%2Fupstream%2Fgstreamer.git ptp: Unref timeout GSource for delay requests https://bugzilla.gnome.org/show_bug.cgi?id=783864 --- diff --git a/libs/gst/net/gstptpclock.c b/libs/gst/net/gstptpclock.c index 8258b14..2f66989 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); }