drivers/lcd/ft80x: unlock mutex before free

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-11-03 18:03:10 +08:00 committed by Petro Karashchenko
parent ad978e7702
commit 5f795a4f0d

View File

@ -531,6 +531,7 @@ static int ft80x_close(FAR struct file *filep)
priv->crefs = 0;
if (priv->unlinked)
{
nxmutex_unlock(&priv->lock);
ft80x_destroy(priv);
return OK;
}