diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2013-05-12 18:45:15 +0400 |
---|---|---|
committer | Sv. Lockal <lockalsash@gmail.com> | 2013-05-12 18:45:15 +0400 |
commit | 97d2439077339ac0e7c55a1b904591e561fef167 (patch) | |
tree | 69d4012d578fc451bf17f3d1ee3bf8ff7680ca18 /source/blender/blenkernel/intern/freestyle.c | |
parent | 4e4eff39378a990a1d6b83ec40163e19735f4a22 (diff) |
Fix crash when closing blend files with no line styles
Diffstat (limited to 'source/blender/blenkernel/intern/freestyle.c')
-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); |