Skip to content

Memory Leakage when repeating create and delete instance #40

Description

@hansuk-kim-wst

I am using UnityCaptureFilter for my project. There is a memory leakage when deleting sender instance if there is at least one receiver.
Adding UnmapViewOfFile in the destructor of SharedImageMemory solves it.

~SharedImageMemory()
{
	...
	if (m_pSharedBuf) UnmapViewOfFile(m_pSharedBuf);	// added. prevent memory leak.
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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