Merge branch '384-possible-memory-leak' into 'master'

Resolve "Possible memory leak"

Closes #384

See merge request !437
6 jobs for master in 16 minutes and 31 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Prepare
passed #115214
npm

00:00:19

 
  Test
passed #115215
linux-x64

00:09:35

passed #115216
linux-x86

00:10:02

passed #115218
selenium

00:03:11

passed #115224
windows x64
windows-x64

00:06:09

failed #115217
windows x64
windows-x64

01:00:08