Updated algo to align with memory management
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
This commit is contained in:
parent
559b83e07f
commit
b9e40d5028
1 changed files with 7 additions and 7 deletions
|
|
@ -23,13 +23,13 @@ Algorithm::isInit()
|
|||
void
|
||||
Algorithm::destroy()
|
||||
{
|
||||
if (this->mPushConstantsData) {
|
||||
free(this->mPushConstantsData);
|
||||
}
|
||||
|
||||
if (this->mSpecializationConstantsData) {
|
||||
free(this->mSpecializationConstantsData);
|
||||
}
|
||||
// We don't have to free memory on destroy as it's freed by the commandBuffer destructor
|
||||
// if (this->mPushConstantsData) {
|
||||
// free(this->mPushConstantsData);
|
||||
// }
|
||||
// if (this->mSpecializationConstantsData) {
|
||||
// free(this->mSpecializationConstantsData);
|
||||
// }
|
||||
|
||||
if (!this->mDevice) {
|
||||
KP_LOG_WARN("Kompute Algorithm destroy function reached with null "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue