summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/conf.c1
-rw-r--r--src/main.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index 6be861e..9234b00 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -382,6 +382,5 @@ struct conf *conf_cur(void)
void conf_close(void)
{
- mod_close();
conf_obj = mem_deref(conf_obj);
}
diff --git a/src/main.c b/src/main.c
index 0028465..2fe552a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -249,6 +249,12 @@ int main(int argc, char *argv[])
baresip_close();
+ /* NOTE: modules must be unloaded after all application
+ * activity has stopped.
+ */
+ debug("main: unloading modules..\n");
+ mod_close();
+
libre_close();
/* Check for memory leaks */