release vertexbuffer on exit viewer

Closes #28
This commit is contained in:
Takahito Tejima 2012-06-21 10:05:39 -07:00
parent fb97e723dd
commit ec30d8cf03

View File

@ -534,6 +534,9 @@ void quit() {
if(g_osdmesh)
delete g_osdmesh;
if (g_vertexBuffer)
delete g_vertexBuffer;
#ifdef OPENSUBDIV_HAS_CUDA
cudaDeviceReset();
#endif