- Arrays should be deleted using "delete[]" and not "delete"

This commit is contained in:
Sune1337 2014-04-28 17:20:37 +02:00
parent a4f597696a
commit 48b361b1eb
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ VideoStream::~VideoStream( )
if (packet_buffers) { if (packet_buffers) {
delete packet_buffers[0]; delete packet_buffers[0];
delete packet_buffers[1]; delete packet_buffers[1];
delete packet_buffers; delete[] packet_buffers;
} }
/* close each codec */ /* close each codec */