Changeset f959495


Ignore:
Timestamp:
2007-02-18T17:19:01Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
46af107
Parents:
7e0af53
Message:

Preventing infinite loop while cleaning up accounts in irc_free(). Closes #245.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r7e0af53 rf959495  
    256256       
    257257        while (irc->accounts)
    258                 account_del(irc, irc->accounts);
     258                if (irc->accounts->gc == NULL)
     259                        account_del(irc, irc->accounts);
     260                else
     261                        /* Nasty hack, but account_del() doesn't work in this
     262                           case and we don't want infinite loops, do we? ;-) */
     263                        irc->accounts = irc->accounts->next;
    259264       
    260265        while (irc->set)
Note: See TracChangeset for help on using the changeset viewer.