table=new QTableWidget(0, colsName.count(), this);table->setHorizontalHeaderLabels(colsName);
Downloader::~Downloader(){ // Удаляется содержимое таблицы for(int i=0; i<table->rowCount(); i++) // <-- Тут сегфолт! { delete table->item(i, downloadReferenceCol); delete qobject_cast<QProgressBar *>( table->cellWidget(i, downloadReferenceCol) ); } delete table; delete cancelButton;}
C++ (Qt)qDebug() << "deleting" << i << "of" << table->rowCount();
valgrind --leak-check=full ./mytetra