set password text asset to nullptr after unloading it

This commit is contained in:
Felix Salcher 2025-07-29 17:11:11 +02:00
parent fa32e0ea35
commit fbd0b644f6
No known key found for this signature in database

View file

@ -267,7 +267,8 @@ bool CPasswordInputField::draw(const SRenderData& data) {
if (passwordLength != g_pHyprlock->getPasswordBufferDisplayLen() && password.show) {
g_pRenderer->asyncResourceGatherer->unloadAsset(password.text.asset);
password.show = false;
password.text.asset = nullptr;
password.show = false;
}
passwordLength = g_pHyprlock->getPasswordBufferDisplayLen();