VBDotNetProgrammer
Programmer
Hi,
Im concerened with memory leaks when deleting objects from vectors i.e.
I am adding objects to the vector like such
<code>
for(i = 0; i < vRules.size(); i++)
{
_vRules.push_back(CRule(vRules));
}
</code>
What would be the correct way to delete the object in that vector? Im afraid I am simply deleting its reference and that the object is being lost as a memory leak?
Thanks
Im concerened with memory leaks when deleting objects from vectors i.e.
I am adding objects to the vector like such
<code>
for(i = 0; i < vRules.size(); i++)
{
_vRules.push_back(CRule(vRules));
}
</code>
What would be the correct way to delete the object in that vector? Im afraid I am simply deleting its reference and that the object is being lost as a memory leak?
Thanks