Changeset 1e52e1f for protocols


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.)

Location:
protocols
Files:
2 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
  • protocols/purple/purple.c

    re92c4f4 r1e52e1f  
    877877        q = g_strdup_printf( "Request: %s\n\n%s\n\n%s", title, primary, secondary );
    878878        pqad->bee_data = query_add( local_bee->ui_data, purple_ic_by_pa( account ), q,
    879                 prplcb_request_action_yes, prplcb_request_action_no, pqad );
     879                prplcb_request_action_yes, prplcb_request_action_no, g_free, pqad );
    880880       
    881881        g_free( q );
Note: See TracChangeset for help on using the changeset viewer.