From 67886bb3df9eaa5f619d6a93836acf5e1813cb84 Mon Sep 17 00:00:00 2001 From: fincs Date: Wed, 26 Sep 2018 21:08:30 +0200 Subject: [PATCH] nvGpuClose: correct order of operations --- nx/source/nvidia/gpu/gpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nx/source/nvidia/gpu/gpu.c b/nx/source/nvidia/gpu/gpu.c index 6e747a7e..c13d0b06 100644 --- a/nx/source/nvidia/gpu/gpu.c +++ b/nx/source/nvidia/gpu/gpu.c @@ -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(); }