To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=81024





------- Additional comments from [EMAIL PROTECTED] Tue Aug 28 19:14:57 +0000 
2007 -------
tra->ericb: I reviewed my code and am not sure if 'leaks' is not reporting 
false positives. In the first 
case OSXTransferable.cxx I'm using the function 'CFArrayGetValueAtIndex'. 
According to the 
documentation "...Return Value
The value at the idx index in theArray. If the return value is a Core 
Foundation Object, ownership 
follows the Get Rule...". The "Get Rule" says "If you receive an object from 
any Core Foundation function 
other than a creation or copy function—such as a Get function—you do not own it 
and cannot be 
certain of the object’s life span. If you want to ensure that such an object is 
not disposed of while you 
are using it, you must claim ownership (with the CFRetain function). You are 
then responsible for 
relinquishing ownership when you have finished with it." 
I would interpret this as "I don't have to call CFRelease in my concrete case. 
Similar arguments count for 
the second case where I return a CFStringRef to a static immutable CFString 
object in 
'DataFlavorMapping::openOfficeToSystemDataFlavor' so I don't see a reason for 
CFRelease here as well 
even in the exception case.
But anyway leave the issue open I will re-investigate and try what happens when 
I use CFReleases 
nevertheless at the places you are suggesting when I'm done with the D&D 
implementation. 


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to