- silly bug, didn't test for hash before freeing

This commit is contained in:
Daniel Dunbar 2005-07-19 01:12:14 +00:00
parent b58f7d0c55
commit 3181991e86
1 changed files with 4 additions and 2 deletions

View File

@ -1298,8 +1298,10 @@ static float *get_mesh_orco(Object *ob)
}
static void free_mesh_orco_hash(void)
{
BLI_ghash_free(g_orco_hash, NULL, (GHashValFreeFP)MEM_freeN);
g_orco_hash = NULL;
if (g_orco_hash) {
BLI_ghash_free(g_orco_hash, NULL, (GHashValFreeFP)MEM_freeN);
g_orco_hash = NULL;
}
}
static void init_render_mesh(Object *ob)