mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixes from valgrind
This commit is contained in:
parent
0feaaded22
commit
676e7988fb
31 changed files with 243 additions and 147 deletions
|
@ -41,12 +41,7 @@ BfSource::~BfSource()
|
|||
delete mSourceData;
|
||||
|
||||
if (mSrcAllocSize >= 0)
|
||||
delete mSrc;
|
||||
|
||||
for (auto typeDef : mTypeDefs)
|
||||
{
|
||||
NOP;
|
||||
}
|
||||
delete [] mSrc;
|
||||
}
|
||||
|
||||
bool BfSource::WantsStats()
|
||||
|
@ -84,7 +79,7 @@ int BfSource::AllocChars(int charCount)
|
|||
if (mSrc != NULL)
|
||||
{
|
||||
memcpy(newSrc, mSrc, mSrcLength);
|
||||
delete mSrc;
|
||||
delete [] mSrc;
|
||||
}
|
||||
mSrc = newSrc;
|
||||
mSrcAllocSize = newAllocSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue