After display ownership is managed in ilmCommon, it is important
to destroy components in the reverse order they were created.
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
err = ilmControl_init(display);
if (ILM_SUCCESS != err)
{
- gIlmCommonPlatformFunc.destroy();
ilmClient_destroy();
+ gIlmCommonPlatformFunc.destroy();
return err;
}
ILM_EXPORT ilmErrorTypes
ilm_destroy(void)
{
- ilmErrorTypes retVal = gIlmCommonPlatformFunc.destroy();
- ilmClient_destroy();
ilmControl_destroy(); // block until control thread is stopped
+ ilmClient_destroy();
+ ilmErrorTypes retVal = gIlmCommonPlatformFunc.destroy();
return retVal;
}