mirror of
https://github.com/YACReader/yacreader
synced 2025-08-28 09:04:27 -04:00
Remove potential memleak in folder model code
This commit is contained in:
@ -823,7 +823,13 @@ void FolderModelProxy::setupFilteredModelData(QSqlQuery &sqlquery, FolderItem *p
|
|||||||
|
|
||||||
//si el nodo es hijo de 1 y no hab<61>a sido previamente insertado como hijo, se a<>ade como tal
|
//si el nodo es hijo de 1 y no hab<61>a sido previamente insertado como hijo, se a<>ade como tal
|
||||||
if(!parentPreviousInserted)
|
if(!parentPreviousInserted)
|
||||||
|
{
|
||||||
filteredItems.value(ROOT)->appendChild(item);
|
filteredItems.value(ROOT)->appendChild(item);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
delete item;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user