mirror of https://github.com/mode777/rayjs.git
Fix resource cleanup
This commit is contained in:
parent
5bd2820ec8
commit
7603ba55dd
|
@ -35,6 +35,7 @@ export const resourceUnload = (id: string) => {
|
|||
res.refcount--
|
||||
if(res.refcount === 0){
|
||||
res.unload(res.resource)
|
||||
resourceList.delete(id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue