diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/login/config.c | 6 | ||||
-rw-r--r-- | src/login/config.h | 1 | ||||
-rw-r--r-- | src/login/init.c | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/login/config.c b/src/login/config.c index e6a1a42..d53cd17 100644 --- a/src/login/config.c +++ b/src/login/config.c @@ -19,3 +19,9 @@ void config_update_server(const char *val) { update_server = aStrdup(val); } + +void config_final(void) +{ + if (update_server) + aFree(update_server); +} diff --git a/src/login/config.h b/src/login/config.h index 1777a9b..a491e1e 100644 --- a/src/login/config.h +++ b/src/login/config.h @@ -5,6 +5,7 @@ #define EVOL_LOGIN_CONFIG void config_update_server(const char *val); +void config_final(void); extern char *update_server; diff --git a/src/login/init.c b/src/login/init.c index 03bc2e6..b1682af 100644 --- a/src/login/init.c +++ b/src/login/init.c @@ -49,4 +49,5 @@ HPExport void server_online (void) HPExport void plugin_final (void) { + config_final(); } |