Ignore:
Timestamp:
Jul 9, 2007, 4:30:20 PM (14 years ago)
Author:
charles
Message:

fix r2306 double-free crash reported by Gimp_, webaake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/list.h

    r2306 r2310  
    2020tr_list_t;
    2121
    22 void        tr_list_free_1   ( void );
    23 void        tr_list_free     ( tr_list_t* );
    24 int         tr_list_length   ( const tr_list_t* );
    25 tr_list_t*  tr_list_append   ( tr_list_t*, void * data );
    26 tr_list_t*  tr_list_prepend  ( tr_list_t*, void * data );
    27 tr_list_t*  tr_list_remove   ( tr_list_t*, const void * data );
    28 tr_list_t*  tr_list_pop      ( tr_list_t*, void ** setme );
     22void        tr_list_free        ( tr_list_t* );
     23tr_list_t*  tr_list_append      ( tr_list_t*, void * data );
     24tr_list_t*  tr_list_prepend     ( tr_list_t*, void * data );
     25tr_list_t*  tr_list_remove_data ( tr_list_t*, const void * data );
     26tr_list_t*  tr_list_pop         ( tr_list_t*, void ** setme );
    2927
    3028typedef int (*TrListCompareFunc)(const void * a, const void * b);
    31 tr_list_t*  tr_list_find      ( tr_list_t*, TrListCompareFunc func, const void * b );
    32 tr_list_t*  tr_list_find_data ( tr_list_t*, const void * data );
     29tr_list_t*  tr_list_find        ( tr_list_t*, TrListCompareFunc func, const void * b );
     30tr_list_t*  tr_list_find_data   ( tr_list_t*, const void * data );
    3331
    3432typedef void (*TrListForeachFunc)(void *);
    35 void tr_list_foreach( tr_list_t*, TrListForeachFunc func );
     33void tr_list_foreach            ( tr_list_t*, TrListForeachFunc func );
    3634
    3735#endif /* TR_LIST_H */
Note: See TracChangeset for help on using the changeset viewer.