mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-13 16:13:49 +01:00
fixes stack memleaks (#18395)
* fixes stack memleaks * . * more * . * . * urg * urg * . * . * . * . * . * . * . * . * . * . * cklear laws * Update vending.dm --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -15,6 +15,10 @@
|
||||
/obj/item/camera/siliconcam/drone_camera //currently doesn't offer the verbs, thus cannot be used
|
||||
name = "Drone photo camera"
|
||||
|
||||
/obj/item/camera/siliconcam/Destroy()
|
||||
QDEL_LIST(aipictures)
|
||||
. = ..()
|
||||
|
||||
/obj/item/camera/siliconcam/proc/injectaialbum(obj/item/photo/p, var/sufix = "") //stores image information to a list similar to that of the datacore
|
||||
p.loc = src
|
||||
photos_taken++
|
||||
@@ -69,6 +73,7 @@
|
||||
return
|
||||
|
||||
aipictures -= selection
|
||||
qdel(selection)
|
||||
to_chat(user, span_unconscious("Local image deleted"))
|
||||
|
||||
/obj/item/camera/siliconcam/ai_camera/can_capture_turf(turf/T, mob/user)
|
||||
|
||||
Reference in New Issue
Block a user