summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/build/Makefile2
-rw-r--r--pjsip/src/pjsua/pjsua_core.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/pjsip/build/Makefile b/pjsip/build/Makefile
index 976ef8f8..cf82a3b3 100644
--- a/pjsip/build/Makefile
+++ b/pjsip/build/Makefile
@@ -24,7 +24,7 @@ export _LDFLAGS := $(subst /,$(HOST_PSEP),$(PJSIP_UA_LIB)) \
$(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \
$(subst /,$(HOST_PSEP),$(PJLIB_LIB)) \
$(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
- $(LDFLAGS)
+ $(LDFLAGS) -lm
###############################################################################
diff --git a/pjsip/src/pjsua/pjsua_core.c b/pjsip/src/pjsua/pjsua_core.c
index 3bdf94ee..fc110409 100644
--- a/pjsip/src/pjsua/pjsua_core.c
+++ b/pjsip/src/pjsua/pjsua_core.c
@@ -665,6 +665,9 @@ pj_status_t pjsua_destroy(void)
pjsua.quit_flag = 1;
+ /* Destroy sound framework: */
+ pj_snd_deinit();
+
/* Wait worker threads to quit: */
for (i=0; i<pjsua.thread_cnt; ++i) {