Fix a memory leak in glTF2.
The destructor of LazyDict uses `delete` but `delete` was not used for objects removed by LazyDict::Remove.pull/3709/head
parent
0dbaeb57e3
commit
3e99385f44
|
@ -383,6 +383,7 @@ unsigned int LazyDict<T>::Remove(const char *id) {
|
|||
mAsset.mUsedIds[id] = false;
|
||||
mObjsById.erase(id);
|
||||
mObjsByOIndex.erase(index);
|
||||
delete mObjs[index];
|
||||
mObjs.erase(mObjs.begin() + index);
|
||||
|
||||
//update index of object in mObjs;
|
||||
|
|
Loading…
Reference in New Issue