mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Fix memory leak in Video Window on Mac (QTKit)
Need to call QTMovie::invalidate before QTMovieView::setMovie to ensure the mmap is deleted before allocating for the new one. This fixes mmap errors when scrolling up and down a list of videos.
This commit is contained in:
@@ -260,8 +260,10 @@ int GcWindowLayout::doLayout(const QRect &rect, bool testOnly) const
|
||||
}
|
||||
|
||||
// if not in test mode, set updates enabled before we repaint
|
||||
if (!testOnly) parent->setUpdatesEnabled(true);
|
||||
parent->repaint();
|
||||
if (!testOnly) {
|
||||
parent->repaint();
|
||||
parent->setUpdatesEnabled(true);
|
||||
}
|
||||
|
||||
// Return the length of the layout
|
||||
int maxy=0;
|
||||
|
||||
Reference in New Issue
Block a user