Fix crash when closing blend files with no line styles

This commit is contained in:
Sv. Lockal
2013-05-12 14:45:15 +00:00
parent 4e4eff3937
commit 97d2439077

View File

@@ -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);