Kaydet (Commit) f53169c7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705867 Dereference before null check

Change-Id: Ia541e6d8f0f0b30dcb67a8693b4dd5d53e929717
üst 051d45a5
......@@ -1260,12 +1260,9 @@ void SlideShow::StartFullscreenPresentation( )
// changes made by the presentation have an effect on the other
// view shells.
FrameView* pOriginalFrameView = 0;
if (mpCurrentViewShellBase)
{
::boost::shared_ptr<ViewShell> xShell(mpCurrentViewShellBase->GetMainViewShell());
if (xShell.get())
pOriginalFrameView = xShell->GetFrameView();
}
::boost::shared_ptr<ViewShell> xShell(mpCurrentViewShellBase->GetMainViewShell());
if (xShell.get())
pOriginalFrameView = xShell->GetFrameView();
delete mpFullScreenFrameView;
mpFullScreenFrameView = new FrameView(mpDoc, pOriginalFrameView);
......
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