Skip to content

Commit

Permalink
bugfix: heap corruption in ConvexHullShapeSettings.createSettings()
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 14, 2025
1 parent d157b99 commit 8c81df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/native/glue/co/ConvexHullShapeSettings.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -78,7 +78,7 @@ JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_ConvexHullShapeSetti
pPoints, numPoints, maxConvexRadius, pMaterial);
TRACE_NEW("ConvexHullShapeSettings", pResult)
TRACE_DELETE("Vec3[]", pPoints)
delete pPoints;
delete[] pPoints;
return reinterpret_cast<jlong> (pResult);
}

Expand Down

0 comments on commit 8c81df9

Please sign in to comment.