Skip to content

Commit

Permalink
Merge branch 'omar-elhamedy-patch-1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChappuis committed May 31, 2024
2 parents ff20874 + 6fc73c1 commit 015d9d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed

- Issue [#377](https://github.com/DanielChappuis/reactphysics3d/issues/377) Fix assert when destroying an empty PhysicsWorld
- Issue [#378](https://github.com/DanielChappuis/reactphysics3d/issues/378) Fix issue with raycasting of HeightFieldShape
- Fix crash within testbed application in raycasting scene

Expand Down
9 changes: 7 additions & 2 deletions include/reactphysics3d/containers/Deque.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,13 @@ class Deque {

clear();

// Release the chunks array
mAllocator.release(mBuffer, sizeof(T) * mCapacity);
if (mCapacity > 0) {

assert(mBuffer != nullptr);

// Release the chunks array
mAllocator.release(mBuffer, sizeof(T) * mCapacity);
}

mCapacity = 0;
mBuffer = nullptr;
Expand Down

0 comments on commit 015d9d1

Please sign in to comment.