Changeset 9076a1c for protocols/nogaim.c


Ignore:
Timestamp:
2015-07-27T23:48:04Z (6 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
10d089d
Parents:
31e2b09
Message:

Fix cleanup of (RPC) groupchats, fixes some crashes at logout time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r31e2b09 r9076a1c  
    413413
    414414        query_del_by_conn((irc_t *) ic->bee->ui_data, ic);
     415
     416        /* Throw away groupchats owned by this account. Historically this was only
     417           ever done by IM modules which is a bug. But it gives them opportunity
     418           to clean up protocol-specific bits as well so keep it that way, just
     419           do another cleanup here as a fallback. Don't want to leave any dangling
     420           pointers! */
     421        while (ic->groupchats) {
     422                imcb_chat_free(ic->groupchats->data);
     423        }
    415424
    416425        if (!a) {
Note: See TracChangeset for help on using the changeset viewer.