fixes a tgui input gc issue (#25160)

This commit is contained in:
GDN
2024-04-19 18:07:48 +00:00
committed by GitHub
parent 66bbc90b12
commit a31b7d4db2
5 changed files with 17 additions and 6 deletions
+4 -1
View File
@@ -74,6 +74,8 @@
var/start_time
/// The lifespan of the text input, after which the window will close and delete itself.
var/timeout
/// The attached timer that handles this objects timeout deletion
var/deletion_timer
/// The title of the TGUI window
var/title
/// The TGUI UI state that will be returned in ui_state(). Default: always_state
@@ -91,11 +93,12 @@
if(timeout)
src.timeout = timeout
start_time = world.time
QDEL_IN(src, timeout)
deletion_timer = QDEL_IN(src, timeout)
/datum/tgui_input_text/Destroy(force)
SStgui.close_uis(src)
state = null
deltimer(deletion_timer)
return ..()
/**