From 71c946914e692c1d2eda6f0dcdfdc1839789110b Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 3 Jan 2010 20:08:09 -0200 Subject: Add hi_module_deinit() functions to more modules. --- hardinfo2/devices.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hardinfo2/devices.c') diff --git a/hardinfo2/devices.c b/hardinfo2/devices.c index 4b29f80f..0607ba39 100644 --- a/hardinfo2/devices.c +++ b/hardinfo2/devices.c @@ -453,6 +453,14 @@ void hi_module_init(void) __init_cups(); } +void hi_module_deinit(void) +{ + h_hash_table_remove_all(moreinfo); + g_hash_table_destroy(moreinfo); + g_hash_table_destroy(memlabels); + g_module_close(cups); +} + ModuleAbout *hi_module_get_about(void) { static ModuleAbout ma[] = { -- cgit v1.2.3