mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
fix(gx): use correct ordering when closing and nulling font face self reference
This commit is contained in:
parent
b0dbad7557
commit
d889a02083
1 changed files with 2 additions and 1 deletions
|
|
@ -14,8 +14,9 @@ void FontFaceCloseHandle(HFACE handle) {
|
||||||
FACEDATA* dataPtr = reinterpret_cast<FACEDATA*>(handle);
|
FACEDATA* dataPtr = reinterpret_cast<FACEDATA*>(handle);
|
||||||
|
|
||||||
if (dataPtr->m_refcount <= 1) {
|
if (dataPtr->m_refcount <= 1) {
|
||||||
HandleClose(dataPtr->selfReference);
|
auto selfReference = dataPtr->selfReference;
|
||||||
dataPtr->selfReference = nullptr;
|
dataPtr->selfReference = nullptr;
|
||||||
|
HandleClose(selfReference);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue