{ cMutexLock lock(&listMutex);  dataSwitchListener.clear(); }
printf("Deleting database\n"); Stop();
Database::~Database() {   //printf("Deleting database\n");   {      cMutexLock lock(&listMutex);      /*      for (std::list<Filter *>::iterator it=activeFilters.begin(); it != activeFilters.end(); ++it) {         Detach(*it); //do not delete a filter, they do not belong to us      }      activeFilters.clear();      */      dataSwitchListener.clear();   }}