Commit 8c6211e
[viogpu] Fix resource leak when framebuffer init fails
When VioGpuObj::Init() fails in CreateFrameBufferObj(), the GPU resource
and ID allocated earlier are not cleaned up, causing host-side resource
leak. Add DestroyResource() and PutId() calls before returning FALSE.
Signed-off-by: xiangzhe <xiangzhedev@gmail.com>1 parent 7107f46 commit 8c6211e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3694 | 3694 | | |
3695 | 3695 | | |
3696 | 3696 | | |
| 3697 | + | |
| 3698 | + | |
3697 | 3699 | | |
3698 | 3700 | | |
3699 | 3701 | | |
| |||
0 commit comments