[Pythonmac-SIG] Carbon bindings' future

Nicholas Riley njriley at uiuc.edu
Fri Apr 11 22:57:35 CEST 2008


On Apr 11, 2008, at 3:50 PM, Daniel Miller wrote:
> BTW, I'm not sure if I'm doing the memory management correctly,  
> especially with the values returned from CFDictionaryGetValue (it  
> might need a CFRelease in there). Could someone double-check me on  
> that please?


The general CF rule is that if you use a function named *Get*, then  
you don't need to CFRelease; if you use a function named *Copy* or  
*Create*, you do.  So, what you've written looks fine.

-- 
Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>



More information about the Pythonmac-SIG mailing list