Revert "nettimeprovider: Remove dead code"
authorTim-Philipp Müller <tim@centricular.com>
Mon, 30 Dec 2013 16:05:47 +0000 (16:05 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 30 Dec 2013 16:07:08 +0000 (16:07 +0000)
This reverts commit 9649cd4ca19a75d0319117a77a7609e4b8c96533.

This is not right, and it's also not what coverity
is complaining about.

libs/gst/net/gstnettimeprovider.c

index 84c7224..202b6c7 100644 (file)
@@ -209,6 +209,9 @@ gst_net_time_provider_thread (gpointer data)
     }
   }
 
+  if (err != NULL)
+    g_error_free (err);
+
   GST_INFO_OBJECT (self, "time provider thread is stopping");
   return NULL;
 }