mirror of
https://github.com/apache/nuttx.git
synced 2025-12-11 12:57:57 +08:00
Call nxsem_destroy or nxmutex_destry in the error path
1.Don't check the return value of nxsem_init or nxmutex_init 2.Fix some style issue Signed-off-by: anjiahao <anjiahao@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
99cfffc96a
commit
d7b4e91dda
@@ -109,7 +109,7 @@ struct nxterm_state_s
|
||||
{
|
||||
FAR const struct nxterm_operations_s *ops; /* Window operations */
|
||||
FAR void *handle; /* The window handle */
|
||||
FAR struct nxterm_window_s wndo; /* Describes the window and font */
|
||||
struct nxterm_window_s wndo; /* Describes the window and font */
|
||||
mutex_t lock; /* Forces mutually exclusive access */
|
||||
#ifdef CONFIG_DEBUG_GRAPHICS
|
||||
pid_t holder; /* Deadlock avoidance */
|
||||
|
||||
Reference in New Issue
Block a user