Skip to content

Commit

Permalink
Add lost comment in GlobalTrackCache
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Nov 25, 2019
1 parent 77d7046 commit 44596b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/track/globaltrackcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ void GlobalTrackCache::relocateTracks(
void GlobalTrackCache::saveEvictedTrack(Track* pEvictedTrack) const {
DEBUG_ASSERT(pEvictedTrack);
// Disconnect all receivers and block signals before saving the
// track.
// track. Accessing an object-under-destruction in signal handlers
// could cause undefined behavior!
// NOTE(uklotzde, 2018-02-03): Simply disconnecting all receivers
// doesn't seem to work reliably. Emitting the clean() signal from
// a track that is about to deleted may cause access violations!!
Expand Down

0 comments on commit 44596b6

Please sign in to comment.