]> cloud.milkyroute.net Git - dolphin.git/commit
Fix memory leak in KFileItemModel
authorFrank Reininghaus <frank78ac@googlemail.com>
Fri, 28 Jun 2013 19:39:35 +0000 (21:39 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Fri, 28 Jun 2013 19:39:35 +0000 (21:39 +0200)
commit7799bf1828b06ccbc1f688a2e4dc1bfa73c7c380
tree28e6bcdbfab41060e1600b8c1b198cac24dcf152
parent5ca5a8f3b61f74c7857fbfb4522ef27ad89e9a0e
Fix memory leak in KFileItemModel

Since m_pendingItemsToInsert is a list of pointers now (and not a list
of KFileItems, as in the 4.10 branch), we have to delete all pointers
when clearing or destroying the model.

I think that no review request is necessary for this small and obvious
change.

CCMAIL: emmanuelpescosta099@gmail.com
src/kitemviews/kfileitemmodel.cpp