Blender Git Loki

Git Commits -> Revision d5d7d45

Revision d5d7d45 by Sergey Sharybin (master)
July 11, 2017, 09:06 (GMT)
Fix memory leak caused by node clipboard

The issue was caused by combination of following factors:

- Clipboard cleanup function will pass node tree as NULL to node free
function.

This is fine on it's own, we don't have tree in clipboard.

- Node free function will call node storage cleanup only when there is
a non-NULL node tree.

This is somewhat weird, because storage cleanup does not take node
tree as argument.

So the solution here: move node storage cleanup outside of check that
node tree is not NULL.

Commit Details:

Full Hash: d5d7d453a5ce506e2d01e0d329447168135c4cb4
Parent Commit: 1dfc4be
Lines Changed: +5, -4

1 Modified Path:

/source/blender/blenkernel/intern/node.c (+5, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021