Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/texture.c')
-rw-r--r--source/blender/blenkernel/intern/texture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c
index a228e3cad04..7873340f7d8 100644
--- a/source/blender/blenkernel/intern/texture.c
+++ b/source/blender/blenkernel/intern/texture.c
@@ -74,6 +74,7 @@
#include "BKE_material.h"
#include "BKE_texture.h"
#include "BKE_key.h"
+#include "BKE_icons.h"
#include "BKE_ipo.h"
@@ -336,6 +337,8 @@ void free_texture(Tex *tex)
free_plugin_tex(tex->plugin);
if(tex->coba) MEM_freeN(tex->coba);
if(tex->env) RE_free_envmap(tex->env);
+ BKE_icon_delete((struct ID*)tex);
+ tex->id.icon_id = 0;
}
/* ------------------------------------------------------------------------- */