diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-17 14:15:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-17 14:15:06 +0400 |
commit | 1174c7d6628de721052190167e249f251a8bbbe5 (patch) | |
tree | a65c063e0e3b5e989549eb0603d313269586c09a /source/blender/makesrna/intern | |
parent | a4e284091b27c8c4d1f4047a7a678c2fa6b13c0b (diff) |
fix for missing NULL pointer checks and incorrect array free
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_object_force.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c index 5ebc3f25c22..ab8b54334fe 100644 --- a/source/blender/makesrna/intern/rna_object_force.c +++ b/source/blender/makesrna/intern/rna_object_force.c @@ -483,7 +483,7 @@ static void rna_FieldSettings_update(Main *UNUSED(bmain), Scene *UNUSED(scene), part->pd->tex = NULL; } - if (part->pd2->forcefield != PFIELD_TEXTURE && part->pd2->tex) { + if (part->pd2 && part->pd2->forcefield != PFIELD_TEXTURE && part->pd2->tex) { part->pd2->tex->id.us--; part->pd2->tex = NULL; } |