Browse Source

TT#111150 fix mem leak in codec tracker

Change-Id: Ie1a617c7ab82147dfce7973d927843f55906a1a5
pull/1252/head
Richard Fuchs 5 years ago
parent
commit
80099bd57c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      daemon/codec.c

+ 3
- 2
daemon/codec.c View File

@ -3586,8 +3586,9 @@ void codec_tracker_finish(struct call_media *media, struct call_media *other_med
// finally check which clock rates are left over and remove those // finally check which clock rates are left over and remove those
GList *to_remove = g_hash_table_get_keys(supp_clockrates); GList *to_remove = g_hash_table_get_keys(supp_clockrates);
for (GList *k = to_remove; k; k = k->next) {
unsigned int clockrate = GPOINTER_TO_UINT(k->data);
while (to_remove) {
unsigned int clockrate = GPOINTER_TO_UINT(to_remove->data);
to_remove = g_list_delete_link(to_remove, to_remove);
// ignore if we haven't touched anything with that clock rate // ignore if we haven't touched anything with that clock rate
if (!sct->all_touched && !g_hash_table_lookup(sct->touched, GUINT_TO_POINTER(clockrate))) if (!sct->all_touched && !g_hash_table_lookup(sct->touched, GUINT_TO_POINTER(clockrate)))


Loading…
Cancel
Save