Changeset 1e52e1f for protocols/nogaim.c


Ignore:
Timestamp:
2010-07-11T10:30:27Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
af9f2ca
Parents:
e92c4f4
Message:

When cleaning up queries, q->data is free()d. Even if it turns out to be
the "struct irc" containing all data belonging to a session. Sanitise
memory management a little bit here. (There are some memory leaks in here
too that need to be fixed at some point.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    re92c4f4 r1e52e1f  
    380380               query_callback doit, query_callback dont )
    381381{
    382         query_add( (irc_t *) ic->bee->ui_data, ic, msg, doit, dont, data );
     382        query_add( (irc_t *) ic->bee->ui_data, ic, msg, doit, dont, g_free, data );
    383383}
    384384
     
    478478        data->handle = g_strdup( handle );
    479479        query_add( (irc_t *) ic->bee->ui_data, ic, s,
    480                    imcb_ask_auth_cb_yes, imcb_ask_auth_cb_no, data );
     480                   imcb_ask_auth_cb_yes, imcb_ask_auth_cb_no, g_free, data );
    481481}
    482482
     
    511511        data->handle = g_strdup( handle );
    512512        query_add( (irc_t *) ic->bee->ui_data, ic, s,
    513                    imcb_ask_add_cb_yes, imcb_ask_add_cb_no, data );
     513                   imcb_ask_add_cb_yes, imcb_ask_add_cb_no, g_free, data );
    514514}
    515515
Note: See TracChangeset for help on using the changeset viewer.