diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2020-06-07 00:25:08 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2020-06-07 00:27:14 +0200 |
commit | 5d28365e7ae8b38dbd6d9896aa27a1791eb80dc8 (patch) | |
tree | 40319faca7e523b5b69cafcdf7ca0fd1011eba29 /src/track | |
parent | db68659b25f73c4e6ed2d709f27f314a43af50d3 (diff) |
Use reset() instead of reassignment to release the cache entry
Diffstat (limited to 'src/track')
-rw-r--r-- | src/track/globaltrackcache.cpp | 2 |
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. |