diff options
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/intern/node_socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_socket.c b/source/blender/nodes/intern/node_socket.c index 4f8ba032873..f03aff8fb92 100644 --- a/source/blender/nodes/intern/node_socket.c +++ b/source/blender/nodes/intern/node_socket.c @@ -190,7 +190,8 @@ void *node_socket_make_default_value(int type) void node_socket_free_default_value(int UNUSED(type), void *default_value) { /* XXX can just free the pointee for all current socket types. */ - MEM_freeN(default_value); + if (default_value) + MEM_freeN(default_value); } void node_socket_init_default_value(int type, void *default_value) |