* 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:
@@ -190,10 +190,11 @@ IFSSaver::Draw(BView *view, int32 frame)
|
|||||||
view->FillRect(view->Bounds());
|
view->FillRect(view->Bounds());
|
||||||
}
|
}
|
||||||
int32 frames = frame - fLastDrawnFrame;
|
int32 frames = frame - fLastDrawnFrame;
|
||||||
if (fIsPreview || fDirectInfo.bits == NULL) {
|
if ((fIsPreview || fDirectInfo.bits == NULL) && fLocker.Lock()) {
|
||||||
fIFS->Draw(view, NULL, frames);
|
fIFS->Draw(view, NULL, frames);
|
||||||
|
|
||||||
fLastDrawnFrame = frame;
|
fLastDrawnFrame = frame;
|
||||||
|
fLocker.Unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user