libpurple/glibcompat.h

changeset 33369
4a43f6a6326b
parent 33368
6aa16fdab83f
child 33467
5d9c3ec722d6
equal deleted inserted replaced
33368:6aa16fdab83f 33369:4a43f6a6326b
37 it = g_list_next(it); 37 it = g_list_next(it);
38 } 38 }
39 g_list_free(list); 39 g_list_free(list);
40 } 40 }
41 41
42 static inline void g_slist_free_full(GSList *list, GDestroyNotify free_func)
43 {
44 GSList *it = list;
45 while (it)
46 {
47 free_func(it->data);
48 it = g_slist_next(it);
49 }
50 g_slist_free(list);
51 }
52
42 #endif /* 2.28.0 */ 53 #endif /* 2.28.0 */
43 54
44 #endif /* _PIDGINGLIBCOMPAT_H_ */ 55 #endif /* _PIDGINGLIBCOMPAT_H_ */

mercurial