Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-05-21 12:10:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-21 12:10:37 +0400
commit09b4d262b93a6e73e67f4249f28da581b30f5214 (patch)
tree33739fed4a279b9901c9924cd706e5147a5a7970 /source/blender/nodes/intern
parent65b238544865128eef3365fa7646fb821087917d (diff)
Quiet null pointer free warning/error.
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r--source/blender/nodes/intern/node_util.c4
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)