Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/modules.c @ 1763:5b497046df40
Fix output of message on module unloading
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Sat, 13 Mar 2010 19:51:54 +0200 |
parents | 84487d78d0ea |
children | d3168cd64d59 |
comparison
equal
deleted
inserted
replaced
1762:e7ce50fe19a9 | 1763:5b497046df40 |
---|---|
262 if (!g_module_close(module->module)) | 262 if (!g_module_close(module->module)) |
263 return g_module_error(); // XXX destroy structure? | 263 return g_module_error(); // XXX destroy structure? |
264 | 264 |
265 // Destroy structure | 265 // Destroy structure |
266 loaded_modules = g_slist_delete_link(loaded_modules, lmod); | 266 loaded_modules = g_slist_delete_link(loaded_modules, lmod); |
267 // Output this here, as arg may point to module->name | |
268 scr_LogPrint(LPRINT_LOGNORM, "Unloaded module %s.", module->name); | |
267 g_free(module->name); | 269 g_free(module->name); |
268 g_free(module); | 270 g_free(module); |
269 | |
270 scr_LogPrint(LPRINT_LOGNORM, "Unloaded module %s.", arg); | |
271 | 271 |
272 return NULL; | 272 return NULL; |
273 } | 273 } |
274 | 274 |
275 // module_list_print(void) | 275 // module_list_print(void) |