Do not try to free the alias dict if it does not exist.

This commit is contained in:
William Pitcock 2010-02-18 18:38:26 -06:00
parent 552379f2ab
commit ba29286a4a
1 changed files with 5 additions and 2 deletions

View File

@ -1221,8 +1221,11 @@ clear_out_old_conf(void)
}
/* remove any aliases... -- nenolod */
irc_dictionary_destroy(alias_dict, free_alias_cb, NULL);
alias_dict = NULL;
if (alias_dict != NULL)
{
irc_dictionary_destroy(alias_dict, free_alias_cb, NULL);
alias_dict = NULL;
}
destroy_blacklists();