Commit bc3fb347 authored by Maria Dimashova's avatar Maria Dimashova

fixed #2155

parent e68b26e7
......@@ -116,9 +116,12 @@ error:
void CvCaptureCAM_XIMEA::close()
{
xiStopAcquisition(hmv);
xiCloseDevice(hmv);
hmv = NULL;
if(hmv)
{
xiStopAcquisition(hmv);
xiCloseDevice(hmv);
hmv = 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