nvGpuClose: correct order of operations

This commit is contained in:
fincs 2018-09-26 21:08:30 +02:00
parent 1c948e2d32
commit 67886bb3df

View File

@ -67,13 +67,13 @@ Result nvGpuCreate(NvGpu* g)
void nvGpuClose(NvGpu* g)
{
nvBufferExit();
nvInfoExit();
nvErrorNotifierClose(&g->error_notifier);
nvChannelClose(&g->gpu_channel);
nvZcullContextClose(&g->zcull_ctx);
nv3DContextClose(&g->_3d_ctx);
nvGpfifoClose(&g->gpfifo);
nvAddressSpaceClose(&g->addr_space);
nvChannelClose(&g->gpu_channel);
nvBufferExit();
nvInfoExit();
}