Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addressing memory leak in TPHostAnimationController where TPEffectsWindo... #16

Merged
merged 1 commit into from
Apr 13, 2015

Conversation

atljeremy
Copy link
Contributor

...ws were being created and added to an NSSet and never removed/released #10

Changes:

  • Replaced NSStringFromClass function calls with a more concise call to class for both CALayer and CATransaction.
  • Updated a very verbose [NSNumber numberWithFloat:...] method call with the Obj-C literal representation of simply @(...).
  • Addressed memory leak where TPEffectsWindows were being created and stored in the _effectWindows set but never removed/released. This happens every time you drag to the remote machine.

…ndows were being created and added to an NSSet and never removed/released johndbritton#10
@abyssoft
Copy link
Contributor

The point of the NSStringFromClass was to preserve compatibility with OSes pre-dating CoreAnimation, but I think they can be dropped now so the code can be simplified more (no need for Class objects). Thanks for fixing the leak!

abyssoft added a commit that referenced this pull request Apr 13, 2015
Addressing memory leak in TPHostAnimationController where TPEffectsWindo...
@abyssoft abyssoft merged commit 84f5b62 into johndbritton:master Apr 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants