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:
Mark Liversedge
2011-11-01 08:47:39 +00:00
parent 4c3266d5dd
commit 6ed5437ddb
2 changed files with 14 additions and 8 deletions

View File

@@ -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;