mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Bad cleanup in gpu.c
This commit is contained in:
parent
6d21700ff7
commit
50718ddccb
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user