twcc: _prune_sent_packets Never removes packets from GArray [Memory Leak]
In _prune_sent_packets of rtptwcc.c never removes an entry from GArray as a condition to remove array is not correct. if (last_idx >= twcc->sent_packets->len) g_array_remove_range (twcc->sent_packets, 0, last_idx);
The above condition is wrong. last_idx can never be twcc->sent_packets->len as index cannot be greater than the array length.
Edited by Vinod Kesti