Kaydet (Commit) 1bd047a3 authored tarafından Andre Fischer's avatar Andre Fischer

#i118879# Prevent SlideshowImpl from being destroyed in the midle of PostYieldListener.

üst 431863f2
......@@ -1907,10 +1907,20 @@ IMPL_LINK( SlideshowImpl, PostYieldListener, void*, EMPTYARG )
{
Application::EnableNoYieldMode(false);
Application::RemovePostYieldListener(LINK(this, SlideshowImpl, PostYieldListener));
if (mbDisposed)
return 0;
// Call Reschedule() but make sure that we are not destroyed during its
// execution (we still can be disposed, though.)
const rtl::Reference<SlideshowImpl> pSelf (this);
Application::Reschedule(true);
return updateSlideShow();
// Update the slide show if we are still alive.
if ( ! mbDisposed)
return updateSlideShow();
else
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment