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

Keep the GIF properties dictionary alive until we're done #7

Merged
merged 1 commit into from
Oct 29, 2013

Conversation

aroben
Copy link
Contributor

@aroben aroben commented Oct 28, 2013

The GIF properties dictionary is, as far as we know, only retained by the image source properties dictionary we got it from. So in order to ensure that the GIF properties dictionary sticks around until we're done with it, we must not release the image source properties dictionary until we no longer need the GIF properties dictionary or any objects obtained from it.

It seems that this is not causing any observable issues, which suggests that there must be something else retaining the image source properties or GIF properties dictionaries (e.g., the image source itself). But that could well change in a future release of OS X.

The GIF properties dictionary is, as far as we know, only retained by
the image source properties dictionary we got it from. So in order to
ensure that the GIF properties dictionary sticks around until we're done
with it, we must not release the image source properties dictionary
until we no longer need the GIF properties dictionary or any objects
obtained from it.

It seems that this is not causing any observable issues, which suggests
that there must be something else retaining the image source properties
or GIF properties dictionaries (e.g., the image source itself). But that
could well change in a future release of OS X.
@mayoff
Copy link
Owner

mayoff commented Oct 29, 2013

Good work. Thanks for the patch.

mayoff added a commit that referenced this pull request Oct 29, 2013
Keep the GIF properties dictionary alive until we're done
@mayoff mayoff merged commit ac2db22 into mayoff:master Oct 29, 2013
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