Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2944
Fix warning
Active
Public
Actions
Authored by
Hans Goudey (HooglyBoogly)
on May 14 2022, 10:43 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
diff --git a/source/blender/draw/intern/draw_cache_impl_particles.c b/source/blender/draw/intern/draw_cache_impl_particles.c
index 442625640d5..185b24cddec 100644
--- a/source/blender/draw/intern/draw_cache_impl_particles.c
+++ b/source/blender/draw/intern/draw_cache_impl_particles.c
@@ -1306,10 +1306,10 @@ static void particle_batch_cache_ensure_pos_and_seg(PTCacheEdit *edit,
MEM_freeN(parent_mcol);
}
if (num_uv_layers) {
- MEM_freeN(mtfaces);
+ MEM_freeN((MTFace **)mtfaces);
}
if (num_col_layers) {
- MEM_freeN(mcols);
+ MEM_freeN((MCol **)mcols);
}
if (psmd != NULL) {
Event Timeline
Hans Goudey (HooglyBoogly)
created this paste.
May 14 2022, 10:43 PM
Log In to Comment