Skip to content

IconImage dispose itself without dispose the underlying SKBitmap object #30

@zhuxb711

Description

@zhuxb711

Just set _bitmap into null

If concerning dispose the _bitmap will affect ToSKBitmap().
I suggest to change ToSKBitmap() to:

public SKBitmap ToSKBitmap()
{
    return _bitmap.Copy();
}

or

// Developer should be responsible for disposing an 'Underlying' object which might cause some problems
public SKBitmap GetUnderlyingSKBitmap()
{
    return _bitmap;
}

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