mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-24 17:44:14 +00:00
netclientclock: Fix GError memory leak in handling NTP response
Error was not released if gst_ntp_packet_receive failed. https://bugzilla.gnome.org/show_bug.cgi?id=760598
This commit is contained in:
parent
3da58942a9
commit
f875bec51e
1 changed files with 1 additions and 0 deletions
|
@ -740,6 +740,7 @@ gst_net_client_internal_clock_thread (gpointer data)
|
||||||
if (g_error_matches (err, GST_NTP_ERROR, GST_NTP_ERROR_WRONG_VERSION)
|
if (g_error_matches (err, GST_NTP_ERROR, GST_NTP_ERROR_WRONG_VERSION)
|
||||||
|| g_error_matches (err, GST_NTP_ERROR, GST_NTP_ERROR_KOD_DENY)) {
|
|| g_error_matches (err, GST_NTP_ERROR, GST_NTP_ERROR_KOD_DENY)) {
|
||||||
GST_ERROR_OBJECT (self, "fatal receive error: %s", err->message);
|
GST_ERROR_OBJECT (self, "fatal receive error: %s", err->message);
|
||||||
|
g_clear_error (&err);
|
||||||
break;
|
break;
|
||||||
} else if (g_error_matches (err, GST_NTP_ERROR,
|
} else if (g_error_matches (err, GST_NTP_ERROR,
|
||||||
GST_NTP_ERROR_KOD_RATE)) {
|
GST_NTP_ERROR_KOD_RATE)) {
|
||||||
|
|
Loading…
Reference in a new issue