forked from bartvdbraak/blender
Fix for missing NULL check in socket default_value free function. Some sockets (currently only cycles shader sockets) don't actually have a default_value pointer.
This commit is contained in:
parent
ae771e742b
commit
b7fbfdbf56
@ -190,6 +190,7 @@ 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. */
|
||||
if (default_value)
|
||||
MEM_freeN(default_value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user