Cleanup, avoid passing const pointer to MEM_freeN()

This generates warnings with MSVC. Similar typecast was
already done in other cases, so think it's all fine.
This commit is contained in:
Sergey Sharybin
2016-02-20 11:47:51 +05:00
parent 637f97b316
commit 55aaa27018
2 changed files with 3 additions and 3 deletions

View File

@@ -1500,7 +1500,7 @@ static void cdDM_buffer_copy_uv_texpaint(
}
}
MEM_freeN(uv_base);
MEM_freeN((void*)uv_base);
}
/* treat varray_ as an array of MCol, four MCol's per face */

View File

@@ -3934,10 +3934,10 @@ static void project_paint_end(ProjPaintState *ps)
/* must be set for non-shared */
BLI_assert(ps->dm_mloopuv || ps->is_shared_user);
if (ps->dm_mloopuv)
MEM_freeN(ps->dm_mloopuv);
MEM_freeN((void *)ps->dm_mloopuv);
if (ps->do_layer_clone)
MEM_freeN(ps->dm_mloopuv_clone);
MEM_freeN((void *)ps->dm_mloopuv_clone);
if (ps->thread_tot > 1) {
BLI_spin_end(ps->tile_lock);
MEM_freeN((void *)ps->tile_lock);