Changeset 977a9d5


Ignore:
Timestamp:
2015-12-09T07:58:59Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
4c29622
Parents:
dbca297
Message:

Revert "imc_away_send_update: Fix leak of away_states linked list"

This reverts commit ed431c389887080dc4fa45e30d051ce733f4ce57.

I'm going to let this leak. Turns out only purple allocates an empty
list for every time this is called. Other protocols have statics, and
they always return the same thing, can't free those. Whatever. The
purple leak was insignificant, just more scratching of itches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rdbca297 r977a9d5  
    611611{
    612612        char *away, *msg = NULL;
    613         GList *m = NULL;
    614613
    615614        if (ic->acc->prpl->away_states == NULL ||
     
    621620               : set_getstr(&ic->bee->set, "away");
    622621        if (away && *away) {
    623                 m = ic->acc->prpl->away_states(ic);
     622                GList *m = ic->acc->prpl->away_states(ic);
    624623                msg = ic->acc->flags & ACC_FLAG_AWAY_MESSAGE ? away : NULL;
    625624                away = imc_away_state_find(m, away, &msg) ? :
     
    632631
    633632        ic->acc->prpl->set_away(ic, away, msg);
    634 
    635         while (m) {
    636                 m = g_list_delete_link(m, m);
    637         }
    638633
    639634        return 1;
Note: See TracChangeset for help on using the changeset viewer.