mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
rtpmanagerbad: fix two minor memory leaks
This commit is contained in:
parent
a710fbc12b
commit
6da6b6f3f0
1 changed files with 2 additions and 0 deletions
|
@ -487,6 +487,7 @@ gst_rtp_sink_start (GstRtpSink * self)
|
||||||
|
|
||||||
g_object_set (self->rtcp_src, "address", any_addr, "port", 0, NULL);
|
g_object_set (self->rtcp_src, "address", any_addr, "port", 0, NULL);
|
||||||
}
|
}
|
||||||
|
g_free (remote_addr);
|
||||||
g_object_unref (iaddr);
|
g_object_unref (iaddr);
|
||||||
|
|
||||||
gst_element_set_locked_state (self->rtcp_src, FALSE);
|
gst_element_set_locked_state (self->rtcp_src, FALSE);
|
||||||
|
@ -508,6 +509,7 @@ dns_resolve_failed:
|
||||||
("Could not resolve hostname '%s'", GST_STR_NULL (remote_addr)),
|
("Could not resolve hostname '%s'", GST_STR_NULL (remote_addr)),
|
||||||
("DNS resolver reported: %s", error->message));
|
("DNS resolver reported: %s", error->message));
|
||||||
g_free (remote_addr);
|
g_free (remote_addr);
|
||||||
|
g_object_unref (iaddr);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue