Changeset 1e52e1f for query.h


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
  • query.h

    re92c4f4 r1e52e1f  
    3333        struct im_connection *ic;
    3434        char *question;
    35         query_callback yes, no;
     35        query_callback yes, no, free;
    3636        void *data;
    3737        struct query *next;
     
    3939
    4040query_t *query_add( irc_t *irc, struct im_connection *ic, char *question,
    41                     query_callback yes, query_callback no, void *data );
     41                    query_callback yes, query_callback no, query_callback free,
     42                    void *data );
    4243void query_del( irc_t *irc, query_t *q );
    4344void query_del_by_conn( irc_t *irc, struct im_connection *ic );
Note: See TracChangeset for help on using the changeset viewer.