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

coverity#1237352 Dereference after null check

Change-Id: Ia9cb84bb0924915d4611c5f18d2a0d19b4198d94
üst c5394594
......@@ -570,11 +570,7 @@ GL3DBarChart::GL3DBarChart(
osl_getSystemTime(&maDataUpdateStartTime);
osl_getSystemTime(&maDataUpdateEndTime);
}
Size aSize;
if (mpWindow)
{
aSize = mpWindow->GetSizePixel();
}
Size aSize = mpWindow->GetSizePixel();
mpRenderer->SetSize(aSize);
mpWindow->setRenderer(this);
mpWindow->getContext().makeCurrent();
......@@ -602,7 +598,7 @@ GL3DBarChart::~GL3DBarChart()
joinRenderThread();
if(mbValidContext && mpWindow)
if(mbValidContext)
mpWindow->setRenderer(NULL);
}
......
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