From c169413a0f28a9683d5d703c7ead1acc652dbc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Wed, 5 Mar 2014 10:00:46 +0100 Subject: Fix for potential memory leak in Bullet API: freeing dynamic arrays should use the delete[] operator instead of the plain pointer delete. --- intern/rigidbody/rb_bullet_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern') diff --git a/intern/rigidbody/rb_bullet_api.cpp b/intern/rigidbody/rb_bullet_api.cpp index ab7b851911a..6d39e328e82 100644 --- a/intern/rigidbody/rb_bullet_api.cpp +++ b/intern/rigidbody/rb_bullet_api.cpp @@ -726,8 +726,8 @@ rbMeshData *RB_trimesh_data_new(int num_tris, int num_verts) static void RB_trimesh_data_delete(rbMeshData *mesh) { delete mesh->index_array; - delete mesh->vertices; - delete mesh->triangles; + delete[] mesh->vertices; + delete[] mesh->triangles; delete mesh; } -- cgit v1.2.3