Changeset ed431c3 for protocols


Ignore:
Timestamp:
2015-12-05T16:06:54Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
f4396c4
Parents:
ac68733a
Message:

imc_away_send_update: Fix leak of away_states linked list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rac68733a red431c3  
    611611{
    612612        char *away, *msg = NULL;
     613        GList *m = NULL;
    613614
    614615        if (ic->acc->prpl->away_states == NULL ||
     
    620621               : set_getstr(&ic->bee->set, "away");
    621622        if (away && *away) {
    622                 GList *m = ic->acc->prpl->away_states(ic);
     623                m = ic->acc->prpl->away_states(ic);
    623624                msg = ic->acc->flags & ACC_FLAG_AWAY_MESSAGE ? away : NULL;
    624625                away = imc_away_state_find(m, away, &msg) ? :
     
    631632
    632633        ic->acc->prpl->set_away(ic, away, msg);
     634
     635        while (m) {
     636                m = g_list_delete_link(m, m);
     637        }
    633638
    634639        return 1;
Note: See TracChangeset for help on using the changeset viewer.