Home > Mobile >  Beginners pointer problem
Beginners pointer problem

Time:05-20

 
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?
  •  Tags:  
  • Qt
  • Related