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

Quick fix for an invalid iterator #2655

Merged
merged 1 commit into from Jun 24, 2015

Conversation

mimimi085181
Copy link
Contributor

textures_by_hash_iter was pointing to elements of textures_by_hash, but pointing to textures_by_address.end() instead of textures_by_hash.end() when it's not pointing to an element.

@i30817
Copy link

i30817 commented Jun 24, 2015

Is this normal in git?

@mimimi085181
Copy link
Contributor Author

Leave me alone, stupid git and stable and whatnot

@CrossVR
Copy link
Contributor

CrossVR commented Jun 24, 2015

@dolphin-emu-bot rebuild

@degasus
Copy link
Member

degasus commented Jun 24, 2015

LGTM

@mimimi085181
Copy link
Contributor Author

Now the question is what is the lifetime of textures_by_hash.end(); ? Is it safe to use it this way, or is this going to blow up eventually like the version before, just in a different situation?

CrossVR added a commit that referenced this pull request Jun 24, 2015
@CrossVR CrossVR merged commit 6274cdb into dolphin-emu:stable Jun 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants