mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
raspi/codec: fix memleak when skipping packets
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user