summaryrefslogtreecommitdiff
path: root/components/rtgui
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-11-26 03:04:47 +0000
committer[email protected] <[email protected]>2011-11-26 03:04:47 +0000
commite834b94805a726a6ef5146240884ebbec898cf74 (patch)
tree0633e9e7119d0aea21c80cd11fbb8b51038e7359 /components/rtgui
parent92d8465224dde5cf9e3cfe44a2486b1b11f6f0db (diff)
rtgui_system: always detach ack_mb in rtgui_thread_send_sync
The old code won't detach ack_mb if error occurs. Fix it. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1807 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui')
-rw-r--r--components/rtgui/common/rtgui_system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/rtgui/common/rtgui_system.c b/components/rtgui/common/rtgui_system.c
index 2607540dfb..91cf1be9de 100644
--- a/components/rtgui/common/rtgui_system.c
+++ b/components/rtgui/common/rtgui_system.c
@@ -430,10 +430,10 @@ rt_err_t rtgui_thread_send_sync(rt_thread_t tid, rtgui_event_t* event, rt_size_t
else
r = RT_EOK;
+__return:
/* fini ack mailbox */
rt_mb_detach(&ack_mb);
-__return:
return r;
}