Re: [AD] r14283 Fix some leaks in new(er) osx joystick code |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Sorry about that. I'll fix it up. Those strings appeared to me to be the cause of the leaks at first,
but I guess it was totally the other things that were responsible.
On 2011-01-18, at 1:38 PM, Peter Hull wrote:
> This patch doesn't look right. You shouldn't CFRelease strings that
> are created with CFSTR.
> http://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFStrings/Articles/CreatingAndCopying.html#//apple_ref/doc/uid/20001183-100988-TPXREF110
> "Because CFSTR is not a Create or Copy function, you are not
> responsible for releasing the string when you no longer need it."
>
> Pete
Trent