diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 6a83183da..07beaf135 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1529,7 +1529,7 @@ static void linphone_core_init(LinphoneCore * lc, const LinphoneCoreVTable *vtab const char *aac_fmtp162248, *aac_fmtp3244; LinphoneCoreVTable* local_vtable= linphone_core_v_table_new(); ms_message("Initializing LinphoneCore %s", linphone_core_get_version()); - memset (lc, 0, sizeof (LinphoneCore)); + lc->config=lp_config_ref(config); lc->data=userdata; lc->ringstream_autorelease=TRUE; @@ -1679,7 +1679,7 @@ LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable, LinphoneCore *linphone_core_new_with_config(const LinphoneCoreVTable *vtable, struct _LpConfig *config, void *userdata) { - LinphoneCore *core = ms_new(LinphoneCore, 1); + LinphoneCore *core = ms_new0(LinphoneCore, 1); linphone_core_init(core, vtable, config, userdata); return core; } @@ -6640,7 +6640,7 @@ typedef struct Hook{ }Hook; static Hook *hook_new(LinphoneCoreIterateHook hook, void *hook_data){ - Hook *h=ms_new(Hook,1); + Hook *h=ms_new0(Hook,1); h->fun=hook; h->data=hook_data; return h; diff --git a/coreapi/upnp.c b/coreapi/upnp.c index 83ab387c4..68b82e2ed 100644 --- a/coreapi/upnp.c +++ b/coreapi/upnp.c @@ -145,7 +145,7 @@ char * linphone_upnp_format_device_id(const char *device_id) { if(device_id == NULL) { return ret; } - ret = ms_new(char, UPNP_UUID_LEN + 1); + ret = ms_new0(char, UPNP_UUID_LEN + 1); tmp = ret; if(linphone_upnp_strncmpi(device_id, "uuid:", linphone_upnp_str_min(device_id, "uuid:")) == 0) { device_id += strlen("uuid:"); diff --git a/mediastreamer2 b/mediastreamer2 index 26ff7a209..dfc2fbd36 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 26ff7a2098d0140083e23682752e66cf53f8e203 +Subproject commit dfc2fbd36db97f07f08112ee8217477ba4257744 diff --git a/oRTP b/oRTP index 5333d998c..7508c59d7 160000 --- a/oRTP +++ b/oRTP @@ -1 +1 @@ -Subproject commit 5333d998c8eaf3c43e66c4a5335c0606c8dea3df +Subproject commit 7508c59d703b769d510321ff357d10139d476bab