summaryrefslogtreecommitdiffstats
path: root/src/track
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-06-07 00:25:08 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-06-07 00:27:14 +0200
commit5d28365e7ae8b38dbd6d9896aa27a1791eb80dc8 (patch)
tree40319faca7e523b5b69cafcdf7ca0fd1011eba29 /src/track
parentdb68659b25f73c4e6ed2d709f27f314a43af50d3 (diff)
Use reset() instead of reassignment to release the cache entry
Diffstat (limited to 'src/track')
-rw-r--r--src/track/globaltrackcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/track/globaltrackcache.cpp b/src/track/globaltrackcache.cpp
index 0e7a2105b4..e15df7026b 100644
--- a/src/track/globaltrackcache.cpp
+++ b/src/track/globaltrackcache.cpp
@@ -708,7 +708,7 @@ void GlobalTrackCache::slotEvictAndSave(
// Explicitly release the cacheEntryPtr including the owned
// track object while the cache is still locked.
- cacheEntryPtr = {};
+ cacheEntryPtr.reset();
// Finally the exclusive lock on the cache is released implicitly
// when exiting the scope of this method.