Browse Source

old glib doesnt have g_queue_free_full

git.mgm/mediaproxy-ng/github/master
Richard Fuchs 13 years ago
parent
commit
a1e49a8f02
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      daemon/rtcp.c

+ 4
- 4
daemon/rtcp.c View File

@ -233,11 +233,11 @@ static struct rtcp_chain_element *rtcp_psfb(str *s) {
return rtcp_generic(s, RTCP_PT_PSFB);
}
static void rtcp_list_free_cb(void *d) {
g_slice_free1(sizeof(struct rtcp_chain_element), d);
}
static void rtcp_list_free(GQueue *q) {
g_queue_free_full(q, rtcp_list_free_cb);
struct rtcp_chain_element *el;
while ((el = g_queue_pop_head(q)))
g_slice_free1(sizeof(*el), el);
}
static int rtcp_parse(GQueue *q, str *_s) {


Loading…
Cancel
Save