diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-22 18:55:53 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-22 18:55:53 +0400 |
commit | f2136b1d50d6a79cf1a4c197cf58cd873e2d7a38 (patch) | |
tree | df7eaf450cc2128f23d216fbf20fb9a586dff82a | |
parent | 676c2924d933d6116081de999cf51af72a9b512b (diff) |
Fix a crash switching from cycles to blender internal, wrong order of freeing.
-rw-r--r-- | source/blender/editors/space_buttons/buttons_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_texture.c b/source/blender/editors/space_buttons/buttons_texture.c index 4446a2e848a..c0ccaeaea90 100644 --- a/source/blender/editors/space_buttons/buttons_texture.c +++ b/source/blender/editors/space_buttons/buttons_texture.c @@ -257,8 +257,8 @@ void buttons_texture_context_compute(const bContext *C, SpaceButs *sbuts) if(!scene_use_new_shading_nodes(scene)) { if(ct) { - MEM_freeN(ct); BLI_freelistN(&ct->users); + MEM_freeN(ct); sbuts->texuser= NULL; } |