polserver/testsuite/pol/testpkgs/item/control_destroy.src
turleypol e08bc60fe9
its no possible to explicitly destroy all orphan objects (#564)
added test which as of now would fail in AddressSanitizer CI build.
(controlscript holds a rawpointer to the item)
2023-11-13 14:23:36 +01:00

9 lines
178 B
Text

use uo;
use os;
program control_destroy(item)
sleepms(10);
DestroyItem(item);
item:=0; // clear reference
Polcore().internal(7); //destroy all orphan objects
endprogram