Ver código fonte

Merge branch 'master' into export_with_rotation

Kim Kulling 4 anos atrás
pai
commit
18886686e1
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      code/AssetLib/glTF2/glTF2Asset.inl

+ 1 - 0
code/AssetLib/glTF2/glTF2Asset.inl

@@ -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;