Ups, found an error:

Quote Originally Posted by Lykurg View Post
Qt Code:
  1. delete a;
To copy to clipboard, switch view to plain text mode 
a: address=1 pointsTo=NULL
(b: address=2 pointsTo=1 (-> which points to NULL))
There "a" still points to "10". So in that short period you have dangling pointers: "a" and "b".