mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 00:23:51 +00:00
Avoid a memory leak
This commit is contained in:
parent
e14ada8f36
commit
2fbed21f83
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ void ContentSelectorModel::ContentModel::addFile(EsmFile *file)
|
|||
if (!mFiles.at(row)->fileName().compare(file->fileName(), Qt::CaseInsensitive))
|
||||
{
|
||||
beginRemoveRows(QModelIndex(), row, row);
|
||||
mFiles.removeAt(row);
|
||||
delete mFiles.takeAt(row);
|
||||
endRemoveRows();
|
||||
emit dataChanged(index(row, 0), index(mFiles.size(), 0));
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue