dispose method

void dispose()

Disposes all the resources associated with the current frame.

Implementation

void dispose() {
	codec?.dispose();
	image?.dispose();
	image = null;
}