Skip to content

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.

Notifications You must be signed in to change notification settings

adamwulf/ARC-dealloc-self

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published