win-ivcam: Fix potential null pointer dereference
parent
2ae706782c
commit
61e2828036
|
@ -107,6 +107,12 @@ struct IVCamSource {
|
|||
void IVCamSource::CamThread()
|
||||
{
|
||||
pSegServer = SegServer::CreateServer();
|
||||
|
||||
if (!pSegServer) {
|
||||
warn("SegServer::CreateServer failed\n");
|
||||
return;
|
||||
}
|
||||
|
||||
SegServer::ServiceStatus status = pSegServer->Init();
|
||||
|
||||
if (status != SegServer::ServiceStatus::SERVICE_NO_ERROR) {
|
||||
|
|
Loading…
Reference in New Issue