Skip to content

Example in readme has redundant disposal statement #7

@rawnsley

Description

@rawnsley

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions