summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-12-08 19:55:20 (GMT)
committer James Bursa <james@netsurf-browser.org>2006-12-08 19:55:20 (GMT)
commitab94ddccb18fffd8792e49c83d147e45bddfeadd (patch)
tree171fa641b174367e1674dbead97b8e73f5e5eccd
parent32f9aa05fc3112735a664ffc91398ea4cd6d9f2c (diff)
downloadlibrufl-ab94ddccb18fffd8792e49c83d147e45bddfeadd.tar.gz
librufl-ab94ddccb18fffd8792e49c83d147e45bddfeadd.tar.bz2
Free rufl_substitution_table in rufl_quit().
svn path=/trunk/rufl/; revision=3110
-rw-r--r--rufl_init.c2
-rw-r--r--rufl_quit.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/rufl_init.c b/rufl_init.c
index 910c47a..3ac39a3 100644
--- a/rufl_init.c
+++ b/rufl_init.c
@@ -31,7 +31,7 @@ unsigned int rufl_family_list_entries = 0;
struct rufl_family_map_entry *rufl_family_map = 0;
os_error *rufl_fm_error = 0;
void *rufl_family_menu = 0;
-unsigned short *rufl_substitution_table;
+unsigned short *rufl_substitution_table = 0;
struct rufl_cache_entry rufl_cache[rufl_CACHE_SIZE];
int rufl_cache_time = 0;
bool rufl_old_font_manager = false;
diff --git a/rufl_quit.c b/rufl_quit.c
index c74bddc..587e07a 100644
--- a/rufl_quit.c
+++ b/rufl_quit.c
@@ -2,7 +2,7 @@
* This file is part of RUfl
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license
- * Copyright 2005 James Bursa <james@semichrome.net>
+ * Copyright 2006 James Bursa <james@semichrome.net>
*/
#include <stdlib.h>
@@ -43,4 +43,7 @@ void rufl_quit(void)
free(rufl_family_menu);
rufl_family_menu = 0;
+
+ free(rufl_substitution_table);
+ rufl_substitution_table = 0;
}