From f838206f69631d602a771e3413c8bc763a3058cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Fri, 8 Jan 2016 11:45:33 +0100 Subject: [PATCH] Save a copy of the list of participants in linphone_conference_get_participants() --- coreapi/conference.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/conference.cc b/coreapi/conference.cc index 6cc888a2f..0c7406152 100644 --- a/coreapi/conference.cc +++ b/coreapi/conference.cc @@ -845,7 +845,7 @@ int linphone_conference_get_participant_count(const LinphoneConference *obj) { } MSList *linphone_conference_get_participants(const LinphoneConference *obj) { - const list participants = ((Conference *)obj)->getParticipants(); + const list &participants = ((Conference *)obj)->getParticipants(); MSList *participants_list = NULL; for(list::const_iterator it=participants.begin();it!=participants.end();it++) { LinphoneAddress *uri = linphone_address_clone(it->getUri());