Hi! I have a doubt on implicit sharing. If I have a pointer to a QImage named pImage, and I create a QImage by creating a shallow copy this way:

Qt Code:
  1. QImage image(*pImage);
To copy to clipboard, switch view to plain text mode 

when image will be destroyed, because the ref counter has reached zero, will the space allocated for pImage be deallocated? Or will I have that data pImage refers to (so an entire QImage) will remain? Sorry for the stupid question but I really can't sort myself out.
Thanks!