komelgman/nd2d — comment on commit 0f641ee2c9dbf173623c2796fdcd82101d9939d4
File:  line 0
By komelgman:

About bitmap. If set the autocleanup flag then after the device is lost, we get an error, because getTexture method running again, but bitmap not exist.

if we create texture as follows:

Texture2D.textureFromBitmapData(new particleTexture().bitmapData)

we get memory leak.