forked from mirrors/linphone-iphone
Fix some memory leaks.
This commit is contained in:
parent
727a7229de
commit
5acc4dd2ec
3 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ void sal_add_presence_info(SalOp *op, belle_sip_message_t *notify, SalPresenceMo
|
|||
,BELLE_SIP_HEADER(belle_sip_header_content_length_create(content_length=strlen(content))));
|
||||
belle_sip_message_set_body(BELLE_SIP_MESSAGE(notify),content,content_length);
|
||||
ms_free(contact_info);
|
||||
ms_free(content);
|
||||
}
|
||||
|
||||
static void presence_process_io_error(void *user_ctx, const belle_sip_io_error_event_t *event){
|
||||
|
|
|
|||
|
|
@ -5490,6 +5490,8 @@ static void linphone_core_uninit(LinphoneCore *lc)
|
|||
|
||||
if (lc->friends) /* FIXME we should wait until subscription to complete*/
|
||||
ms_list_for_each(lc->friends,(void (*)(void *))linphone_friend_close_subscriptions);
|
||||
if (lc->presence_model)
|
||||
linphone_presence_model_delete(lc->presence_model);
|
||||
linphone_core_set_state(lc,LinphoneGlobalShutdown,"Shutting down");
|
||||
#ifdef VIDEO_ENABLED
|
||||
if (lc->previewstream!=NULL){
|
||||
|
|
|
|||
|
|
@ -991,6 +991,7 @@ static int process_pidf_xml_presence_person_activities(xmlparsing_context_t *xml
|
|||
}
|
||||
}
|
||||
}
|
||||
if (activities_object != NULL) xmlXPathFreeObject(activities_object);
|
||||
if (err < 0) break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue