Skip to content

Commit ccc0827

Browse files
authored
Fix UAF on load_model_animations (#182)
1 parent 0bfa274 commit ccc0827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raylib/src/core/models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl RaylibHandle {
125125
}
126126
}
127127
unsafe {
128-
ffi::UnloadModelAnimations(m_ptr, m_size);
128+
ffi::MemFree(m_ptr as *mut ::std::os::raw::c_void);
129129
}
130130
Ok(m_vec)
131131
}

0 commit comments

Comments
 (0)