-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from samschott/updated-memory-management
Updated memory management
- Loading branch information
Showing
6 changed files
with
360 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Retain Objective-C objects when creating Python wrappers and release them when the | ||
Python wrapped is garbage collected. This means that manual ``retain`` calls and | ||
subsequent ``release`` or ``autorelease`` calls from Python are no longer needed with | ||
very few exceptions, for example when writing implementations of ``copy`` that return an | ||
existing object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Manual calls to ``release`` or ``autorelease`` no longer cause Rubicon | ||
to skip releasing an Objective-C object when its Python wrapper is | ||
garbage collected. This means that fewer ``retain`` than ``release`` calls will cause | ||
segfaults on garbage collection. Review your code carefully for unbalanced ``retain`` | ||
and ``release`` calls before updating. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.