diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-21 12:10:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-21 12:10:37 +0400 |
commit | 09b4d262b93a6e73e67f4249f28da581b30f5214 (patch) | |
tree | 33739fed4a279b9901c9924cd706e5147a5a7970 | |
parent | 65b238544865128eef3365fa7646fb821087917d (diff) |
Quiet null pointer free warning/error.
-rw-r--r-- | source/blender/nodes/intern/node_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_util.c b/source/blender/nodes/intern/node_util.c index 1c38bdf39d7..548a21ee35b 100644 --- a/source/blender/nodes/intern/node_util.c +++ b/source/blender/nodes/intern/node_util.c @@ -57,7 +57,9 @@ void node_free_curves(bNode *node) void node_free_standard_storage(bNode *node) { - MEM_freeN(node->storage); + if (node->storage) { + MEM_freeN(node->storage); + } } void node_copy_curves(bNode *orig_node, bNode *new_node) |