forked from blender/blender
The official Blender project repository.
Bastien Montagne
65c5721c5a
Calling `MEM_freeN` on data allocated with `MEM_new` is bad, since it will not call a destructor matching the one invoked as part of `MEM_new`. While in practice cases fixed below were 'not a problem' currently, as they are trivial Cpp types (and therefore their destructor is doing nothing), `MEM_freeN` has no way to ensure it is dealing with such a trivial data type, so allowing such mismatch is dirty and dangerous. Note that almost all fixed cases look more like unintentional mistakes (mis-usages of `MEM_new` instead of `MEM_cnew`). NOTE: There is one more (known!) case in the asset code, which fix is slightly less trivial, and will go through a separate PR. NOTE: This is a by-product of some work to detect such invalid usages of `MEM_freeN` on memory chunks allocated with `MEM_new`. Pull Request: blender/blender#123691 |
||
---|---|---|
.gitea | ||
.github | ||
build_files | ||
doc | ||
extern | ||
intern | ||
lib | ||
locale | ||
release | ||
scripts | ||
source | ||
tests | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.editorconfig | ||
.git-blame-ignore-revs | ||
.gitignore | ||
.gitmodules | ||
AUTHORS | ||
CMakeLists.txt | ||
COPYING | ||
GNUmakefile | ||
make.bat | ||
pyproject.toml | ||
README.md |
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.