diff --git a/hipamd/src/hip_texture.cpp b/hipamd/src/hip_texture.cpp index e205c960f4..744b0815cb 100644 --- a/hipamd/src/hip_texture.cpp +++ b/hipamd/src/hip_texture.cpp @@ -329,6 +329,7 @@ hipError_t ihipDestroyTextureObject(hipTextureObject_t texObject) { !texObject->image->isParent(); if (isImageFromBuffer || isImageView) { texObject->image->release(); + texObject->sampler->release(); } // TODO Should call ihipFree() to not polute the api trace.