raspi/codec: fix memleak when skipping packets

This commit is contained in:
Stefan Seyfried
2013-10-20 01:04:40 +02:00
parent 4c13442e05
commit b424d34536

View File

@@ -203,8 +203,10 @@ void codec_queue_add_item(struct codec_t* codec, struct packet_t* packet, int ms
codec->queue_count++;
} else {
fprintf(stderr,"Dropping packet - codec is stopped.\n");
// fprintf(stderr,"Dropping packet - codec is stopped.\n");
free(packet->buf);
free(packet);
free(new);
}
pthread_mutex_unlock(&codec->queue_mutex);