You will need to free the data, and you do not need to wait at all, by the time SendCmd returns the data has been finished with.


2008/10/1 Zhu, Hua <>

I have question about sending command to OpaqueProxy. The sample code is shown below.

player_opaque_data_t cmd;
cmd.data_count = 9; = new uint8_t[9];[0] = ...
...[8] = ...

delete []; // *** will it cause memory leak if this line is commented out?

I'm wondering if will be released somewhere else (such as in player_opaque_data_pack()??) or I need to release it here?

If I need to release it by myself, do I need to wait/sleep a while before delete it?

Thanks for your help,

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
Playerstage-users mailing list

This email is intended for the addressee only and may contain privileged and/or confidential information