tests:Add destructor to desciptor set that destroys object
diff --git a/tests/xglrenderframework.cpp b/tests/xglrenderframework.cpp
index cb0c094..59d5302 100644
--- a/tests/xglrenderframework.cpp
+++ b/tests/xglrenderframework.cpp
@@ -629,6 +629,10 @@
     // bind pipeline, vertex buffer (descriptor set) and WVP (dynamic memory view)
     xglCmdBindDescriptorSet(commandBuffer, XGL_PIPELINE_BIND_POINT_GRAPHICS, 0, m_rsrcDescSet, 0 );
 }
+XglDescriptorSetObj::~XglDescriptorSetObj()
+{
+    if (m_rsrcDescSet != XGL_NULL_HANDLE) xglDestroyObject(m_rsrcDescSet);
+}
 
 XglTextureObj::XglTextureObj(XglDevice *device):
     m_texture(XGL_NULL_HANDLE),
diff --git a/tests/xglrenderframework.h b/tests/xglrenderframework.h
index 30d7412..bc61c7f 100644
--- a/tests/xglrenderframework.h
+++ b/tests/xglrenderframework.h
@@ -183,6 +183,7 @@
 {
 public:
     XglDescriptorSetObj(XglDevice *device);
+    ~XglDescriptorSetObj();
     void AttachMemoryView(XglConstantBufferObj* constantBuffer);
     void AttachSampler( XglSamplerObj* sampler);
     void AttachImageView( XglTextureObj* texture);