fixed some leak

This commit is contained in:
Martin Pulec
2012-10-12 00:23:12 +02:00
parent 44f6ccd082
commit 1abe99ba88

View File

@@ -1328,6 +1328,8 @@ int decode_frame(struct coded_data *cdata, void *decode_data)
}
}
assert(ret == TRUE);
pthread_mutex_lock(&decoder->lock);
{
while (decoder->work_to_do) {
@@ -1371,6 +1373,10 @@ cleanup:
for(i = 0; i < (int) (sizeof(pckt_list) / sizeof(struct linked_list *)); ++i) {
ll_destroy(pckt_list[i]);
if(ret != TRUE) {
free(fec_buffers[i]);
}
frame_size += buffer_len[i];
}