Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2013-05-12 18:45:15 +0400
committerSv. Lockal <lockalsash@gmail.com>2013-05-12 18:45:15 +0400
commit97d2439077339ac0e7c55a1b904591e561fef167 (patch)
tree69d4012d578fc451bf17f3d1ee3bf8ff7680ca18 /source/blender/blenkernel/intern/freestyle.c
parent4e4eff39378a990a1d6b83ec40163e19735f4a22 (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.c6
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);