sip: origin: Fix memory leak
This commit is contained in:
@@ -462,5 +462,5 @@ calls_sip_call_set_codecs (CallsSipCall *self,
|
||||
g_return_if_fail (codecs);
|
||||
|
||||
g_list_free (self->codecs);
|
||||
self->codecs = codecs;
|
||||
self->codecs = g_list_copy (codecs);
|
||||
}
|
||||
|
@@ -518,7 +518,7 @@ sip_i_state (int status,
|
||||
* also: rtcp port = rtp port + 1
|
||||
*/
|
||||
if (r_sdp) {
|
||||
GList *codecs =
|
||||
g_autoptr (GList) codecs =
|
||||
calls_sip_media_manager_get_codecs_from_sdp (origin->media_manager,
|
||||
r_sdp->sdp_media);
|
||||
|
||||
|
Reference in New Issue
Block a user