res wrote:
> On 14.10.2008 15:37, Quentin Anciaux wrote:
>> virtual const uint8* GetAlpha ()
>> Who should delete the array ? is it a copy of internal structure or a
>> pointer to it (in which case it is deleted when csImageBase is deleted) ?
> It's a pointer to internal data. Generally, unless otherwise noted in
> the docs, it's best to assume the returned pointer is owned by the class
> instance.

Also the fact that it is returning a 'const' to you indicates that you 
are not responsible for freeing the resource. This will be true of any 
const* and const& returned.

-- ES


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to