diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/freestyle.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/freestyle.c b/source/blender/blenkernel/intern/freestyle.c index b514b004170..32fe4ac4ba6 100644 --- a/source/blender/blenkernel/intern/freestyle.c +++ b/source/blender/blenkernel/intern/freestyle.c @@ -68,8 +68,10 @@ void BKE_freestyle_config_free(FreestyleConfig *config) lineset->group->id.us--; lineset->group = NULL; } - lineset->linestyle->id.us--; - lineset->linestyle = NULL; + if (lineset->linestyle) { + lineset->linestyle->id.us--; + lineset->linestyle = NULL; + } } BLI_freelistN(&config->linesets); BLI_freelistN(&config->modules); |