Bad cleanup in gpu.c

This commit is contained in:
plutooo 2018-03-11 01:45:21 +01:00 committed by fincs
parent 6d21700ff7
commit 50718ddccb

View File

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