The method ResourceFactory.createTexture(MediaFrame frame); is overridden by ResourceFactory classes specific to each rendering pipelines(es2,d3d,mtl).
The overridden method could be modified to use AutoCloseable or try-with-resources block, such that the Frame is released when method exits
The overridden method could be modified to use AutoCloseable or try-with-resources block, such that the Frame is released when method exits