]> cloud.milkyroute.net Git - dolphin.git/commit
viewproperties: Fix leaking file descriptors
authorAkseli Lahtinen <akselmo@akselmo.dev>
Thu, 5 Jun 2025 08:49:22 +0000 (11:49 +0300)
committerAkseli Lahtinen <akselmo@akselmo.dev>
Mon, 9 Jun 2025 12:55:49 +0000 (15:55 +0300)
commit04e493d78cdf46e64562fe8a302426b1fd8c47df
tree3263dafd1348f00f00398275b519400da0d7c30a
parent697d58e9727e229abb81956d27a05d1f02d8c775
viewproperties: Fix leaking file descriptors

File descriptors would keep leaking here since tempFile never gets
deleted. This would be especially noticeable when browsing /tmp/ folder.

This patch makes the QTemporaryFile an unique_ptr, so it gets
deleted when it's out of scope. This also causes the files to be
handled accordingly.

BUG: 505215
src/views/viewproperties.cpp