mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
rtsp: don't leak address and socket
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677466
This commit is contained in:
parent
a2172bdb4b
commit
0b0dde7ce1
1 changed files with 2 additions and 0 deletions
|
@ -322,10 +322,12 @@ gst_rtsp_connection_accept (GSocket * socket, GstRTSPConnection ** conn,
|
||||||
ip = g_inet_address_to_string (g_inet_socket_address_get_address
|
ip = g_inet_address_to_string (g_inet_socket_address_get_address
|
||||||
(G_INET_SOCKET_ADDRESS (addr)));
|
(G_INET_SOCKET_ADDRESS (addr)));
|
||||||
port = g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (addr));
|
port = g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (addr));
|
||||||
|
g_object_unref (addr);
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
gst_rtsp_connection_create_from_socket (client_sock, ip, port, NULL,
|
gst_rtsp_connection_create_from_socket (client_sock, ip, port, NULL,
|
||||||
conn);
|
conn);
|
||||||
|
g_object_unref (client_sock);
|
||||||
g_free (ip);
|
g_free (ip);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue