summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-26 13:02:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-26 13:02:53 +0300
commite7434a2c9bb05e2c2404092cab842236e9a155e8 (patch)
treead0262ddf68bfc47ccd96dc713c0899860779d7e /src/map
parent9484af0df48cc4e8d986090a9591d01b4c6c4df6 (diff)
downloadevol-hercules-e7434a2c9bb05e2c2404092cab842236e9a155e8.tar.gz
evol-hercules-e7434a2c9bb05e2c2404092cab842236e9a155e8.tar.bz2
evol-hercules-e7434a2c9bb05e2c2404092cab842236e9a155e8.tar.xz
evol-hercules-e7434a2c9bb05e2c2404092cab842236e9a155e8.zip
fix memory leaks on exit.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/lang.c b/src/map/lang.c
index 53662c2..02fae53 100644
--- a/src/map/lang.c
+++ b/src/map/lang.c
@@ -36,7 +36,7 @@ void do_init_langs (void)
void do_final_langs(void)
{
- db_clear(translate_db);
+ db_destroy(translate_db);
}
static int langsdb_readlangs (void)
@@ -59,6 +59,7 @@ static int langsdb_readlangs (void)
lang_langs[lang_num] = aStrdup (text);
lang_num ++;
}
+ fclose(fp);
return 0;
}