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:
Lukas Toenne 2012-01-21 16:36:06 +00:00
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);
}