Changeset 1e52e1f for protocols/purple


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