< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] The use of Data Class


Hi, everyone.
When I use the Data class,  Detected memory leaks by using  _CrtDumpMemoryLeaks().
Like bellow:
e:\resiprocate-1.8.5\rutil\data.cxx(314) : {2230} normal block at 0x0382E588, 304 bytes long.
 Data: <     </div>     > 20 20 20 20 20 3C 2F 64 69 76 3E 0A 20 20 20 20

e:\resiprocate-1.8.5\rutil\data.cxx(346) : {2189} normal block at 0x0382CEF0, 20 bytes long.
 Data: <SimpleTargetHand> 53 69 6D 70 6C 65 54 61 72 67 65 74 48 61 6E 64 

e:\resiprocate-1.8.5\rutil\data.cxx(1093) : {2204} normal block at 0x0382D4B8, 23 bytes long.
 Data: <Proxy::mFifo er:> 50 72 6F 78 79 3A 3A 6D 46 69 66 6F 00 65 72 3A

If use lots of Data instance in the program , will it make more memory leak?
I know that we must use the Data as the function parameter is Data.
The new and delete can avoid memory leak, how can I use the Data to avoid memory leak?

Thanks for your help.