From 542e0c67bad1e17ca5d260805d2055f7da506df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Mon, 13 Jan 2020 18:55:58 +0100 Subject: Fluid: Updated Mantaflow source files The memory leak described in T72498 has been fixed in Mantaflow, the updated files should reflect this in Blender. --- extern/mantaflow/preprocessed/fileio/iomeshes.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'extern/mantaflow/preprocessed/fileio') diff --git a/extern/mantaflow/preprocessed/fileio/iomeshes.cpp b/extern/mantaflow/preprocessed/fileio/iomeshes.cpp index 900c9bf2776..79a9e76da3f 100644 --- a/extern/mantaflow/preprocessed/fileio/iomeshes.cpp +++ b/extern/mantaflow/preprocessed/fileio/iomeshes.cpp @@ -424,6 +424,7 @@ template void readMdataUni(const std::string &name, MeshDataImpl *md assertMsg(gzread(gzf, &head, sizeof(UniMeshHeader)) == sizeof(UniMeshHeader), "can't read file, no header present"); mdata->resize(head.dim); + assertMsg(head.dim == mdata->size(), "mdata size doesn't match"); # if FLOATINGPOINT_PRECISION != 1 MeshDataImpl temp(mdata->getParent()); -- cgit v1.2.3