Merge branch 'master' into cache-align

This commit is contained in:
Christian Semmler 2025-06-11 15:33:36 -07:00 committed by GitHub
commit bb0fd0d5be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,10 +9,11 @@ template <typename T>
struct Direct3DRMObjectBaseImpl : public T {
ULONG Release() override
{
if (IUnknown::m_refCount == 1) {
if (T::m_refCount == 1) {
for (auto it = m_callbacks.cbegin(); it != m_callbacks.cend(); it++) {
it->first(this, it->second);
}
m_callbacks.clear();
}
SDL_free(m_name);
return this->T::Release();