# HG changeset patch # User Myhailo Danylenko # Date 1268502714 -7200 # Node ID 5b497046df4010b4c85c3a98e4cfe717bfa4e449 # Parent e7ce50fe19a9f8b19c8232439c98690e6f5cea9b Fix output of message on module unloading diff -r e7ce50fe19a9 -r 5b497046df40 mcabber/mcabber/modules.c --- a/mcabber/mcabber/modules.c Sat Mar 13 18:17:10 2010 +0200 +++ b/mcabber/mcabber/modules.c Sat Mar 13 19:51:54 2010 +0200 @@ -264,11 +264,11 @@ // Destroy structure loaded_modules = g_slist_delete_link(loaded_modules, lmod); + // Output this here, as arg may point to module->name + scr_LogPrint(LPRINT_LOGNORM, "Unloaded module %s.", module->name); g_free(module->name); g_free(module); - scr_LogPrint(LPRINT_LOGNORM, "Unloaded module %s.", arg); - return NULL; }