Do not access the internal C++ pointer directly, use the c-tools macro for that.

This commit is contained in:
Ghislain MARY 2017-09-14 11:16:08 +02:00
parent f8f072fb3d
commit 7c4de39e80

View file

@ -516,8 +516,8 @@ void linphone_call_params_unref(LinphoneCallParams *cp) {
LinphoneCallParams * linphone_call_params_new(LinphoneCore *core) {
LinphoneCallParams *params = _linphone_call_params_init();
params->cppPtr = new LinphonePrivate::MediaSessionParams();
params->cppPtr->initDefault(core);
L_SET_CPP_PTR_FROM_C_STRUCT(params, new LinphonePrivate::MediaSessionParams());
GET_MEDIA_CPP_PTR(params)->initDefault(core);
return params;
}