You switched the two lines around? So you now have something like the following?

Qt Code:
  1. myPointer = 0;
  2. delete myPointer;
To copy to clipboard, switch view to plain text mode 

To me, that seems a little pointless.