fix exceeding shared memory usage, return of member of deleted class.

This commit is contained in:
Erwin Coumans committed 2019-05-06 17:13:42 -07:00
1 parent f4f5f70886
commit 688df2c60b
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -952,7 +952,7 @@ struct b3ForwardDynamicsAnalyticsIslandData
double m_remainingLeastSquaresResidual;
};
#define MAX_ISLANDS_ANALYTICS 1024
#define MAX_ISLANDS_ANALYTICS 64
struct b3ForwardDynamicsAnalyticsArgs
{
@@ -206,7 +206,9 @@ private:
{
GPR_ASSERT(status_ == FINISH);
// Once in the FINISH state, deallocate ourselves (CallData).
CallData tmpStatus = status_;
delete this;
return tmpStatus;
}
return status_;
}