Blender Git Commit Log

Git Commits -> Revision 49a3503

Revision 49a3503 by Dalai Felinto (master)
June 30, 2017, 17:03 (GMT)
Fix T51877: Deleting a scene uses freed memory

At the moment libblock_remap_data_preprocess is using
FOREACH_SCENE_OBJECT to iterate over all the objects of the scene and
unlink them.

However we were storing a reference to the Base of the removed object.
Anyways, the loop is now sanitized so that this crash no longer happens.

Also now we have an unittest for this.

Commit Details:

Full Hash: 49a35033be60e58ed4910346bc29ffa1954b34ec
Parent Commit: b43cdc9
Lines Changed: +45, -5

1 Added Path:

/tests/python/render_layer/test_scene_delete.py (+39, -0) (View)

2 Modified Paths:

/source/blender/blenkernel/intern/collection.c (+5, -5) (Diff)
/tests/python/render_layer/CMakeLists.txt (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021