FastAndroidCamera icon indicating copy to clipboard operation
FastAndroidCamera copied to clipboard

Example in readme has redundant disposal statement

Open rawnsley opened this issue 8 years ago • 0 comments

The readme file says:

...
using (FastJavaByteArray buffer = new FastJavaByteArray(numBytes))
{
    // allocate new Java byte arrays for Android to use for preview frames
    camera.AddCallbackBuffer(new FastJavaByteArray(numBytes));
}
...

Unless I'm missing something, the variable buffer is simply instantiated and disposed without ever actually being used. Isn't this enclosing using{} statement redundant?

rawnsley avatar Jan 12 '17 17:01 rawnsley