mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #515, use srs_freepa to free the array.
This commit is contained in:
parent
ef00005ab4
commit
2af7749771
16 changed files with 69 additions and 64 deletions
|
@ -161,7 +161,7 @@ SrsFastVector::SrsFastVector()
|
|||
SrsFastVector::~SrsFastVector()
|
||||
{
|
||||
free();
|
||||
srs_freep(msgs);
|
||||
srs_freepa(msgs);
|
||||
}
|
||||
|
||||
int SrsFastVector::size()
|
||||
|
@ -220,7 +220,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue