It is actually a const (there is a large string table in memory with all these strings), so don't free the returned value.
- Alfred > -----Original Message----- > From: [email protected] [mailto:hlcoders- > [email protected]] On Behalf Of Giancarlo Rivas > Sent: Monday, January 05, 2009 9:01 PM > To: Discussion of Half-Life Programming > Subject: [hlcoders] ILocalize Find return > > Hi, I haven't seen the latest sdk, I only merged the first upgrade ever > whatever that is called. When using localize()->Find( tempvar ) I > wanted to > know whether to delete the result or not after using it, the usual > would be > not to delete the result. But the prototype says wchar_t* Find() > without > const so I assume I must handle the deletion myself, am I correct or is > it > actually a const and the engine will handle the deletion? > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

