* Locks fLocker when drawing. This avoids a cleanup while drawing (fixes bug #6138).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37035 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2010-06-06 14:05:04 +00:00
parent 7269cc8afd
commit 786171e012
+2 -1
View File
@@ -190,10 +190,11 @@ IFSSaver::Draw(BView *view, int32 frame)
view->FillRect(view->Bounds());
}
int32 frames = frame - fLastDrawnFrame;
if (fIsPreview || fDirectInfo.bits == NULL) {
if ((fIsPreview || fDirectInfo.bits == NULL) && fLocker.Lock()) {
fIFS->Draw(view, NULL, frames);
fLastDrawnFrame = frame;
fLocker.Unlock();
}
}