1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

merge srs2, use srs_freepa for array

This commit is contained in:
winlin 2015-11-02 11:05:39 +08:00
parent cef1ae5a8e
commit 8cec06e898
16 changed files with 69 additions and 65 deletions

View file

@ -162,7 +162,7 @@ SrsFastVector::SrsFastVector()
SrsFastVector::~SrsFastVector()
{
free();
srs_freep(msgs);
srs_freepa(msgs);
}
int SrsFastVector::size()
@ -221,7 +221,7 @@ void SrsFastVector::push_back(SrsSharedPtrMessage* msg)
srs_warn("fast vector incrase %d=>%d", nb_msgs, size);
// use new array.
srs_freep(msgs);
srs_freepa(msgs);
msgs = buf;
nb_msgs = size;
}