Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adamwulf/arc-dealloc-self

This repository explains how and when an object might be dealloc'd inside of one of its own methods, and provides alternative implementations that would not exhibit this memory bug.
https://github.com/adamwulf/arc-dealloc-self

Last synced: 3 days ago
JSON representation

This repository explains how and when an object might be dealloc'd inside of one of its own methods, and provides alternative implementations that would not exhibit this memory bug.

Awesome Lists containing this project

README

        

# self dealloc mid-method in ARC

This code shows how an object can be dealloc'd during the middle of it's own method, causing an EXEC_BAD_ACCESS when accessing self. The code explains why and how this may happen, and then gives 3 alternatives that will not show the same bug.