Skip to content

Commit b129888

Browse files
authored
Fix potential bug in CProxyDirect3DDevice9::Release
1 parent 0e965b4 commit b129888

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Client/core/DXHook/CProxyDirect3DDevice9.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ ULONG CProxyDirect3DDevice9::Release()
117117
// Call event handler
118118
CDirect3DEvents9::OnDirect3DDeviceDestroy(m_pDevice);
119119
delete this;
120+
return ulRefCount - 1;
120121
}
121122

122123
return m_pDevice->Release();

0 commit comments

Comments
 (0)