Added unbind texture to samples and tests

This commit is contained in:
Anusha Godavarthy Surya
2019-10-15 11:34:15 +05:30
parent a5d9f56bef
commit 20cfe17805
2 changed files with 2 additions and 0 deletions
@@ -124,6 +124,7 @@ bool runTest(int argc, char** argv) {
}
}
}
hipUnbindTexture(tex);
hipFree(dData);
hipFreeArray(array);
return true;
@@ -90,6 +90,7 @@ int runTest(int argc, char** argv) {
}
}
}
HIPCHECK(hipUnbindTexture(tex));
hipFree(dData);
hipFreeArray(hipArray);
return testResult;