Fix script memory leak (cherry picked from commit fb59661d8e6b0838ee02be88f2459c4a35fc16d9)
Fix script memory leak
(cherry picked from commit fb59661d8e6b0838ee02be88f2459c4a35fc16d9)

humble/ags-geminirue,humble/ags-geminirue,OutOfOrder/ags-geminirue,humble/ags-geminirue,humble/ags-geminirue,OutOfOrder/ags-geminirue,OutOfOrder/ags-geminirue,OutOfOrder/ags-geminirue,OutOfOrder/ags-geminirue,humble/ags-geminirue,OutOfOrder/ags-geminirue,OutOfOrder/ags-geminirue,humble/ags-geminirue,humble/ags-geminirue