summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-14 17:32:59 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-14 17:32:59 +0900
commit31641e4c75b5545f2fad7336e45aeaa5d883f445 (patch)
tree7982fe860e4b71d2cb1b1ea0be5b761c0e438bea
parent0a26ea3594f216d489cd4f844ac9b84f752953c6 (diff)
elementary atspi_bridge: fix memory leak at the corner case
-rw-r--r--src/lib/elementary/elm_atspi_bridge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_atspi_bridge.c b/src/lib/elementary/elm_atspi_bridge.c
index 6ec5fd7729..2e9f987561 100644
--- a/src/lib/elementary/elm_atspi_bridge.c
+++ b/src/lib/elementary/elm_atspi_bridge.c
@@ -3748,7 +3748,7 @@ _set_broadcast_flag(const char *event, Eo *bridge)
3748 3748
3749 if (!strcmp(tokens[0], "Object")) 3749 if (!strcmp(tokens[0], "Object"))
3750 { 3750 {
3751 if (!tokens[1] || *tokens[1] == '\0') return; // do not handle "Object:*" 3751 if (!tokens[1] || *tokens[1] == '\0') goto end; // do not handle "Object:*"
3752 else if (!strcmp(tokens[1], "StateChanged")) 3752 else if (!strcmp(tokens[1], "StateChanged"))
3753 { 3753 {
3754 if (!tokens[2] || *tokens[2] == '\0') 3754 if (!tokens[2] || *tokens[2] == '\0')
@@ -3823,6 +3823,7 @@ _set_broadcast_flag(const char *event, Eo *bridge)
3823 STATE_TYPE_SET(pd->window_signal_broadcast_mask, ATSPI_WINDOW_EVENT_RESTORE); 3823 STATE_TYPE_SET(pd->window_signal_broadcast_mask, ATSPI_WINDOW_EVENT_RESTORE);
3824 } 3824 }
3825 3825
3826end:
3826 free(tokens[0]); 3827 free(tokens[0]);
3827 free(tokens); 3828 free(tokens);
3828} 3829}