Commit 6cc2bfad authored by Simon Morlat's avatar Simon Morlat

fix crash at termination

parent a3a4fe17
......@@ -285,5 +285,9 @@ MSSndCard *linphone_sound_daemon_get_proxy_card(LinphoneSoundDaemon *lsd){
}
void linphone_core_use_sound_daemon(LinphoneCore *lc, LinphoneSoundDaemon *lsd){
lc->sound_conf.lsd_card=linphone_sound_daemon_get_proxy_card (lsd);
if (lsd!=NULL){
lc->sound_conf.lsd_card=linphone_sound_daemon_get_proxy_card (lsd);
}else {
lc->sound_conf.lsd_card=NULL;
}
}
......@@ -95,8 +95,9 @@ int main(int argc, char *argv[]){
wait_a_bit(lc,10);
linphone_core_terminate_call(lc,NULL);
}
linphone_core_destroy(lc);
linphone_core_use_sound_daemon(lc,NULL);
linphone_sound_daemon_destroy(lsd);
linphone_core_destroy(lc);
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment