fixed some small bugs M.Z.
This commit is contained in:
@ -736,7 +736,6 @@ static void ErrReport(pEVControl self)
|
||||
ObParInit(pRes->pParam, SETTLE, "settle", 0., usUser);
|
||||
|
||||
/* local initialisations */
|
||||
pRes->pDriv = pDriv;
|
||||
if (pDriv->GetValues==NULL) /* if GetValues is undefined, set to default */
|
||||
{
|
||||
pDriv->GetValues=StdGetValues;
|
||||
@ -765,7 +764,7 @@ static void ErrReport(pEVControl self)
|
||||
DeleteEVController(pRes);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
pRes->pDriv = pDriv; /* moved here to avoid double freeing on evfactory del */
|
||||
return pRes;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user