Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Possible Memory leak in infer #2

Open
maustinstar opened this issue Oct 22, 2018 · 0 comments
Open

Possible Memory leak in infer #2

maustinstar opened this issue Oct 22, 2018 · 0 comments
Assignees
Labels
invalid This doesn't seem right
Milestone

Comments

@maustinstar
Copy link
Owner

maustinstar commented Oct 22, 2018

IRIS/ImageTransfer.swift

render() called on line 17 leads to memory leak.

note: may be an effect multithreading?

Calling:
UIGraphicsBeginImageContext(size)
should allocate enough memory for the final image.
However, after each patch is drawn to the context:
(UIImage(cgImage: cropped).draw(in: rect))
the memory usage increases until:
UIGraphicsEndImageContext()
and the image is returned from the function.

@maustinstar maustinstar added the bug Something isn't working label Oct 22, 2018
@maustinstar maustinstar self-assigned this Nov 7, 2018
@maustinstar maustinstar added invalid This doesn't seem right and removed bug Something isn't working labels Nov 7, 2018
@maustinstar maustinstar added this to the TestFlight milestone Nov 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant