Fix a crash switching from cycles to blender internal, wrong order of freeing.

This commit is contained in:
2011-11-22 14:55:53 +00:00
parent 676c2924d9
commit f2136b1d50

View File

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