Hi, I have a problem I don't understand the behaviour.

I have a slot and there a instantiate a QList<int*>*;

Qt Code:
  1. void Class::slot()
  2. {
  3. QList<int>* list = new QList<int>();
  4. qDebug() << "list_adress: " << list; //i.e. 0x7fbc24034870
  5. deleteList(list);
  6. qDebug() << "list_adress: " << list; // i expect 0x0, but output is 0x7fbc24034870
  7. }
  8.  
  9. void Class::deleteList(QList<int>* list)
  10. {
  11. delete list;
  12. list = NULL;
  13. }
To copy to clipboard, switch view to plain text mode 
Why pointer is not deleted in slot?
Please help me!!??