diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-10-07 03:04:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-10-07 03:05:27 +0300 |
commit | f456c8d8d35200516dce3a37f37fd3131a5db367 (patch) | |
tree | 5f909f22e4c0f42d1c5c9534e5283939c0d79ea7 | |
parent | f834cb03565c41172e8c8d39b6978b92a85e686c (diff) |
Fix game-property use-after-free error
D1538 by @hal01
-rw-r--r-- | source/blender/blenkernel/intern/property.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/property.c b/source/blender/blenkernel/intern/property.c index 100df5fd121..dc4063b42ed 100644 --- a/source/blender/blenkernel/intern/property.c +++ b/source/blender/blenkernel/intern/property.c @@ -142,8 +142,8 @@ void BKE_bproperty_object_set(Object *ob, bProperty *propc) bProperty *prop; prop = BKE_bproperty_object_get(ob, propc->name); if (prop) { - BKE_bproperty_free(prop); BLI_remlink(&ob->prop, prop); + BKE_bproperty_free(prop); } BLI_addtail(&ob->prop, BKE_bproperty_copy(propc)); } |