From 50718ddccb01e80e75fe24fe853e36ca39a8c6e0 Mon Sep 17 00:00:00 2001 From: plutooo Date: Sun, 11 Mar 2018 01:45:21 +0100 Subject: [PATCH] Bad cleanup in gpu.c --- nx/source/nvidia/gpu/gpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nx/source/nvidia/gpu/gpu.c b/nx/source/nvidia/gpu/gpu.c index 5167b080..093f67b6 100644 --- a/nx/source/nvidia/gpu/gpu.c +++ b/nx/source/nvidia/gpu/gpu.c @@ -7,8 +7,10 @@ Result nvgpuCreate(NvGpu* g) if (R_FAILED(nvinfoInit())) return MAKERESULT(Module_Libnx, LibnxError_NvinfoFailedToInitialize); - if (R_FAILED(nvbufInit())) + if (R_FAILED(nvbufInit())) { + nvinfoExit(); return MAKERESULT(Module_Libnx, LibnxError_NvbufFailedToInitialize); + } rc = nvchannelCreate(&g->gpu_channel, "/dev/nvhost-gpu");