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());