You can't do that. You need to use the delete operator:

    delete m_project_file_watcher;