mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-02 03:40:13 +00:00
fix mismatch new/delete
This commit is contained in:
parent
feb4a5a176
commit
faf8db0387
@ -38,7 +38,7 @@ class V4L2DeviceSource: public FramedSource
|
||||
Frame(char* buffer, int size, timeval timestamp) : m_buffer(buffer), m_size(size), m_timestamp(timestamp) {};
|
||||
Frame(const Frame&);
|
||||
Frame& operator=(const Frame&);
|
||||
~Frame() { delete m_buffer; };
|
||||
~Frame() { delete [] m_buffer; };
|
||||
|
||||
char* m_buffer;
|
||||
int m_size;
|
||||
|
@ -78,10 +78,10 @@ std::list< std::pair<unsigned char*,size_t> > H264_V4L2DeviceSource::splitFrames
|
||||
os << "profile-level-id=" << std::hex << std::setw(6) << profile_level_id;
|
||||
os << ";sprop-parameter-sets=" << sps_base64 <<"," << pps_base64;
|
||||
m_auxLine.assign(os.str());
|
||||
|
||||
free(sps_base64);
|
||||
free(pps_base64);
|
||||
LOG(NOTICE) << m_auxLine;
|
||||
|
||||
delete [] sps_base64;
|
||||
delete [] pps_base64;
|
||||
}
|
||||
frameList.push_back(std::make_pair<unsigned char*,size_t>(buffer, size));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user