ptp: Unref timeout GSource for delay requests
authorAndrejs Vasiljevs <andrejs.vasiljevs@ubnt.com>
Fri, 16 Jun 2017 13:34:00 +0000 (13:34 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 17 Jun 2017 07:52:45 +0000 (10:52 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=783864

libs/gst/net/gstptpclock.c

index 79951a3..6557cfa 100644 (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);
 }