summaryrefslogtreecommitdiff
path: root/src/ua.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-10-19 01:23:57 +0200
committerAlfred E. Heggestad <aeh@db.org>2014-10-19 01:23:57 +0200
commit76db3b6d9fabb4c9460c917bfc4405a50897658e (patch)
tree77a97667796553fc40a6e89654772d60eb496d85 /src/ua.c
parentad3905c989d13b5a216643437d2152f8c0629bde (diff)
ui: update UI-module API
- change from multiple-instances to single-instance (multiple-instances was never used) - remove ui/input config parameters from the "core" config, moved to each specific module (cons and evdev) - modules updated: stdio, cons, evdev, wincons - this patch solves the reported crash, that module-functions are called after the module was unloaded.
Diffstat (limited to 'src/ua.c')
-rw-r--r--src/ua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ua.c b/src/ua.c
index b7cf132..5759b5f 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -1089,7 +1089,6 @@ int ua_init(const char *software, bool udp, bool tcp, bool tls,
uag.cfg = &cfg->sip;
bsize = cfg->sip.trans_bsize;
- ui_init(&cfg->input);
play_init();
@@ -1154,6 +1153,7 @@ void ua_close(void)
cmd_unregister(cmdv);
net_close();
play_close();
+ ui_reset();
uag.evsock = mem_deref(uag.evsock);
uag.sock = mem_deref(uag.sock);