Skip to content

Not calling Bitmap.UnlockBits in Textures.cs #36

@evandixon

Description

@evandixon

Regarding this line:

BitmapData d = Picture.LockBits(new Rectangle(0, 0, Picture.Width, Picture.Height), System.Drawing.Imaging.ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);

There's no corresponding UnlockBits call. Picture.UnlockBits(d); needs to be added before line 591, or else a memory leak or access violation could occur.

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