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");