Closed
Bug 457135
Opened 17 years ago
Closed 7 years ago
Need an auto-CFRelease abstraction
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: roc, Unassigned)
Details
Seems like some kind of nsCFPtr which automatically does a CFRelease would clean up our Mac code quite a bit.
Comment 1•7 years ago
|
||
FWIW, there's CFAutorelease() now (usable back to 10.9).
Comment 2•7 years ago
|
||
(In reply to Wevah (Nate Weaver) from comment #1)
> FWIW, there's CFAutorelease() now (usable back to 10.9).
Thanks for pointing this out (and for reminding us of this bug).
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Comment 3•7 years ago
|
||
CFAutorelease does an autorelease, using the autorelease pool. This bug as filed was about having a C++ smart pointer that calls CFRelease in its destructor without the use of an autorelease pool.
We might still want to add such a smart pointer but I haven't seen a large need for it recently.
Resolution: FIXED → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•