Save a copy of the list of participants in linphone_conference_get_participants()

This commit is contained in:
François Grisez 2016-01-08 11:45:33 +01:00
parent b118f3584a
commit f838206f69

View file

@ -845,7 +845,7 @@ int linphone_conference_get_participant_count(const LinphoneConference *obj) {
}
MSList *linphone_conference_get_participants(const LinphoneConference *obj) {
const list<Participant> participants = ((Conference *)obj)->getParticipants();
const list<Participant> &participants = ((Conference *)obj)->getParticipants();
MSList *participants_list = NULL;
for(list<Participant>::const_iterator it=participants.begin();it!=participants.end();it++) {
LinphoneAddress *uri = linphone_address_clone(it->getUri());