projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8831b
)
webrtcbin: fix GInetAddress leak
author
Ilya Smelykh
<ilya@videoexpertsgroup.com>
Mon, 29 Jul 2019 07:56:16 +0000
(14:56 +0700)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 10 Aug 2019 12:34:21 +0000
(13:34 +0100)
ext/webrtc/gstwebrtcice.c
patch
|
blob
|
history
diff --git
a/ext/webrtc/gstwebrtcice.c
b/ext/webrtc/gstwebrtcice.c
index
e3da783
..
8887b33
100644
(file)
--- a/
ext/webrtc/gstwebrtcice.c
+++ b/
ext/webrtc/gstwebrtcice.c
@@
-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