Commit e898f156 authored by Ilya Smelykh's avatar Ilya Smelykh

webrtcbin: fix GInetAddress leak

parent 8af8e735
Pipeline #51820 passed with stages
in 44 minutes and 21 seconds
......@@ -302,6 +302,7 @@ _resolve_host (GstWebRTCICE * ice, const gchar * host)
GError *error = NULL;
GInetAddress *addr;
GList *addresses;
gchar *address;
GST_DEBUG_OBJECT (ice, "Resolving host %s", host);
......@@ -316,8 +317,10 @@ _resolve_host (GstWebRTCICE * ice, const gchar * host)
/* XXX: only the first address is used */
addr = addresses->data;
address = g_inet_address_to_string (addr);
g_resolver_free_addresses (addresses);
return g_inet_address_to_string (addr);
return address;
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment