mirror of
https://github.com/aap/librw.git
synced 2025-12-20 01:19:51 +00:00
fixed more leaks
This commit is contained in:
@@ -1207,6 +1207,10 @@ closeD3D(void)
|
||||
if(ref != 0)
|
||||
printf("IDirect3D9_Release did not destroy\n");
|
||||
d3d9Globals.d3d9 = nil;
|
||||
rwFree(d3d9Globals.modes);
|
||||
d3d9Globals.modes = nil;
|
||||
d3d9Globals.numModes = 0;
|
||||
d3d9Globals.currentMode = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -240,6 +240,7 @@ closeIm3D(void)
|
||||
destroyVertexBuffer(im3dvertbuf);
|
||||
im3dvertbuf = nil;
|
||||
|
||||
removeDynamicIB(&im3dindbuf);
|
||||
destroyIndexBuffer(im3dindbuf);
|
||||
im3dindbuf = nil;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user