D8596: Fix memory leak in FolderModel::drop

2017-11-02 Thread Milian Wolff
mwolff abandoned this revision. mwolff added a comment. oh of course, the dropJob is the sender, stupid me. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D8596 To: mwolff, #plasma Cc: hein, ngraham, broulik, anthonyfieroni, plasma-devel, ZrenBot, progwolff,

D8596: Fix memory leak in FolderModel::drop

2017-11-02 Thread Eike Hein
hein added a comment. It's not necessary to delete connections. When a QObject is destroyed this is done already. Patch rejected sorry :) REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D8596 To: mwolff, #plasma Cc: hein, ngraham, broulik, anthonyfieroni, plas

D8596: Fix memory leak in FolderModel::drop

2017-11-01 Thread Kai Uwe Broulik
broulik added a comment. This looks fishy. From `QObject::connect()` docs: > The connection will automatically disconnect if the sender or the context is destroyed. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D8596 To: mwolff, #plasma Cc: broulik, ant

D8596: Fix memory leak in FolderModel::drop

2017-11-01 Thread Anthony Fieroni
anthonyfieroni added a comment. Are sure about that? Every connection is destroyed when sender or receiver dies i.e. when dropjob dies connection also, no? REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D8596 To: mwolff, #plasma Cc: anthonyfieroni, plasma-dev

D8596: Fix memory leak in FolderModel::drop

2017-11-01 Thread Anthony Fieroni
anthonyfieroni added a reviewer: Plasma. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D8596 To: mwolff, #plasma Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

D8596: Fix memory leak in FolderModel::drop

2017-11-01 Thread Milian Wolff
mwolff created this revision. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel. REVISION SUMMARY When handling a drop event, a drop job was created and a Qt signal/slot connection created. This connection was only freed once the model ge