diff --git a/apps/mapeditor/src/mapview.cpp b/apps/mapeditor/src/mapview.cpp index b549052..2326be8 100644 --- a/apps/mapeditor/src/mapview.cpp +++ b/apps/mapeditor/src/mapview.cpp @@ -80,7 +80,12 @@ MapView::MapView(GameData *data, FileCache &cache, AppState *appState, QWidget * QString::fromStdString(assetPath), materials, 0); + + // We don't need this, and it will just take up memory + physis_mdl_free(&plateMdl); } + + physis_free_file(&plateMdlFile); } } break; } @@ -119,6 +124,11 @@ void MapView::addTerrain(QString basePath, physis_Terrain terrain) QStringLiteral("terapart%1").arg(i), materials, 0); + + // We don't need this, and it will just take up memory + physis_mdl_free(&plateMdl); + + physis_free_file(&plateMdlFile); } } } diff --git a/extern/libphysis b/extern/libphysis index 5a1cf87..4a1332b 160000 --- a/extern/libphysis +++ b/extern/libphysis @@ -1 +1 @@ -Subproject commit 5a1cf87fb9a04ed8ccfbd635564eaf26654fc0a5 +Subproject commit 4a1332b6199c5146730a31ceab9f3ae2c7ecc7f1