mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Merge branch 'master' into cache-align
This commit is contained in:
commit
bb0fd0d5be
@ -9,10 +9,11 @@ template <typename T>
|
|||||||
struct Direct3DRMObjectBaseImpl : public T {
|
struct Direct3DRMObjectBaseImpl : public T {
|
||||||
ULONG Release() override
|
ULONG Release() override
|
||||||
{
|
{
|
||||||
if (IUnknown::m_refCount == 1) {
|
if (T::m_refCount == 1) {
|
||||||
for (auto it = m_callbacks.cbegin(); it != m_callbacks.cend(); it++) {
|
for (auto it = m_callbacks.cbegin(); it != m_callbacks.cend(); it++) {
|
||||||
it->first(this, it->second);
|
it->first(this, it->second);
|
||||||
}
|
}
|
||||||
|
m_callbacks.clear();
|
||||||
}
|
}
|
||||||
SDL_free(m_name);
|
SDL_free(m_name);
|
||||||
return this->T::Release();
|
return this->T::Release();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user