Packet40 * Packet50Crypto: : testPtr () {
Packet40 * p=new Packet40 ();
P - & gt; The header=0 x11;
return p;
}
Excuse me, do not write this p - & gt; DeleteLater (); This kind of statement, won't cause a memory leak?
Packet40 * Packet50Crypto: : testPtr () {
Packet40 * p=new Packet40 ();
P - & gt; The header=0 x11;
return p;
}